Skip to content

Commit cdc27d5

Browse files
Merge pull request #87 from richardthe3rd/claude/fix-preview-worker-proxy-01M2QfvgqgzavYUxKRMYzMy8
Fix preview app worker proxy access issue
2 parents b41defc + d1a362a commit cdc27d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudflare-worker/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function handleCorsPreflight(request) {
197197
...getCorsHeaders(request),
198198
'Access-Control-Allow-Methods': 'GET, OPTIONS',
199199
'Access-Control-Allow-Headers': 'Content-Type',
200-
'Access-Control-Max-Age': '86400',
200+
'Access-Control-Max-Age': '300', // 5 minutes - allows quick recovery from CORS issues
201201
},
202202
});
203203
}

0 commit comments

Comments
 (0)