Skip to content

Conversation

@subnetmarco
Copy link
Member

No description provided.

@subnetmarco subnetmarco changed the title Chore/simplified examples chore: simplified examples and clean up Nov 11, 2025
@subnetmarco subnetmarco force-pushed the chore/simplified-examples branch from 47b693b to c9065a4 Compare November 12, 2025 01:12
@subnetmarco subnetmarco force-pushed the chore/simplified-examples branch 2 times, most recently from 086aa4f to 002d2e7 Compare November 17, 2025 08:12
@subnetmarco subnetmarco force-pushed the chore/simplified-examples branch from cf0c68f to 04a00fe Compare November 18, 2025 04:01
// In production, configure CORS to only allow specific origins
const allowedOrigins = process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3000'];
app.use(cors({
origin: process.env.NODE_ENV === 'production' ? allowedOrigins : '*',

Check warning

Code scanning / CodeQL

Permissive CORS configuration Medium

CORS Origin allows broad access due to
permissive or user controlled value
.
CORS Origin allows broad access due to
permissive or user controlled value
.
// In production, configure CORS to only allow specific origins
const allowedOrigins = process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3000'];
app.use(cors({
origin: process.env.NODE_ENV === 'production' ? allowedOrigins : '*',

Check warning

Code scanning / CodeQL

Permissive CORS configuration Medium

CORS Origin allows broad access due to
permissive or user controlled value
.
CORS Origin allows broad access due to
permissive or user controlled value
.
@subnetmarco subnetmarco merged commit 7828c73 into main Nov 18, 2025
6 checks passed
@subnetmarco subnetmarco deleted the chore/simplified-examples branch November 18, 2025 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants