Skip to content

Commit

Permalink
fix: CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jan 2, 2025
1 parent cbed7f8 commit 59eda56
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ module.exports = withSentryConfig(module.exports, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

headers: async () => {
return [
{
source: "/api/:path*",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "*",
},
{
key: "Access-Control-Allow-Methods",
value: "GET, POST, PUT, DELETE, OPTIONS",
},
],
},
];
},

// Suppresses source map uploading logs during build
silent: true,

Expand Down

0 comments on commit 59eda56

Please sign in to comment.