Skip to content

Commit

Permalink
Merge pull request #4429 from novuhq/NV-2990-add-max-age-cors-header
Browse files Browse the repository at this point in the history
feat(api): Add Access-Control-Max-Age response header
  • Loading branch information
rifont authored Oct 9, 2023
2 parents b33751e + f70dcd4 commit 178edf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const corsOptionsDelegate = function (req, callback) {
const corsOptions = {
origin: false as boolean | string | string[],
preflightContinue: false,
maxAge: 86400,
allowedHeaders: ['Content-Type', 'Authorization', 'sentry-trace'],
methods: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
};
Expand Down

0 comments on commit 178edf3

Please sign in to comment.