Skip to content

Commit

Permalink
Merge pull request #2590 from cisagov/2589-fix-cors-settings
Browse files Browse the repository at this point in the history
Fix CORS formatting.
  • Loading branch information
Matthew-Grayson authored Feb 29, 2024
2 parents b3bc06c + ad769dc commit c94232d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ app.use(express.json({ strict: false }));

app.use(
cors({
origin: ['*'],
origin: '*',
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS']
})
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//CORS Options
export const ALLOW_ORIGIN = ['*'];
export const ALLOW_ORIGIN = '*';
export const ALLOW_METHODS = ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'];

0 comments on commit c94232d

Please sign in to comment.