Skip to content

Commit

Permalink
adding cors for event tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Jan 9, 2025
1 parent e197f2b commit 9c7b74f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const nextConfig = {
source: "/api/events",
headers: [
{ key: "Access-Control-Allow-Origin", value: "*" },
{ key: "Access-Control-Allow-Credentials", value: "true" },
{
key: "Access-Control-Allow-Headers",
value:
"X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date",
},
{
key: "Access-Control-Allow-Methods",
value: "GET,DELETE,PATCH,POST,PUT",
Expand Down

0 comments on commit 9c7b74f

Please sign in to comment.