Skip to content

Commit 54a44bb

Browse files
committed
Fix compatibility_flags configuration and enhance CORS handling
- Fixed compatibility_flags format error that was preventing local testing - Enhanced CORS headers with explicit origin validation - Added WAF bypass variables for custom domain - Local testing now works correctly with 204 response
1 parent fa2cdfe commit 54a44bb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wrangler.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ compatibility_flags = ["nodejs_compat"]
1111
route = "api-polygon-tokens.staging.polygon.technology/*"
1212
[env.staging.vars]
1313
CLOUDFLARE_WAF_BYPASS = "true"
14-
[env.staging.compatibility_flags]
15-
nodejs_compat = true
1614

1715
[env.production]
1816
routes = [

0 commit comments

Comments
 (0)