Skip to content

Commit

Permalink
Add Access-Control-Allow: * to /collect for CORS access
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Jan 11, 2025
1 parent e1aaa9a commit e2558aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/app/analytics/collect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export function collectRequestHandler(request: Request, env: Env) {

return new Response(arrayBuffer, {
headers: {
"Access-Control-Allow-Origin": "*",
"Content-Type": "image/gif",
Expires: "Mon, 01 Jan 1990 00:00:00 GMT",
"Cache-Control": "no-cache",
Expand Down

0 comments on commit e2558aa

Please sign in to comment.