Skip to content

Commit

Permalink
Set Access-Control-Allow-Headers: * default response header (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
hood committed Aug 21, 2023
1 parent 155b412 commit aaa323d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/utilities/server.ts
Expand Up @@ -63,6 +63,7 @@ export const startServer = async (

if (args['--cors']) {
response.setHeader('Access-Control-Allow-Origin', '*');
response.setHeader('Access-Control-Allow-Headers', '*');
response.setHeader('Access-Control-Allow-Credentials', 'true');
response.setHeader('Access-Control-Allow-Private-Network', 'true');
}
Expand Down

0 comments on commit aaa323d

Please sign in to comment.