Skip to content

Commit

Permalink
fix: remove cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
josteph authored and Kiyozz committed Jun 2, 2021
1 parent 179bad0 commit 8c31429
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/electron-esbuild/src/builder/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ export class EsbuildBuilder extends BaseBuilder<BuildOptions> {

handler.use(compression() as never)
handler.use((req, res) => {
res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp')
res.setHeader('Cross-Origin-Opener-Policy', 'same-origin')

if (req.url === '/' || req.url === '') {
res.setHeader('Content-Type', 'text/html')
res.writeHead(200)
Expand Down

0 comments on commit 8c31429

Please sign in to comment.