Skip to content

Commit

Permalink
add header
Browse files Browse the repository at this point in the history
  • Loading branch information
ylkjick532428 committed Nov 2, 2023
1 parent 781ee27 commit 333906a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Local/corp.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ new WebpackDevServer(
},
},
headers: {
'Cross-Origin-Resource-Policy': 'cross-origin'
'Cross-Origin-Resource-Policy': 'cross-origin',
'Access-Control-Allow-Origin': '*'
},
historyApiFallback: true,
client: {
Expand All @@ -52,7 +53,8 @@ new WebpackDevServer(
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Resource-Policy': 'cross-origin'
'Cross-Origin-Resource-Policy': 'cross-origin',
'Access-Control-Allow-Origin': '*'
},
historyApiFallback: true,
static: './',
Expand Down

0 comments on commit 333906a

Please sign in to comment.