Skip to content

Commit

Permalink
Add headders to vite.config.ts (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: rmrfxyz <[email protected]>
  • Loading branch information
rmrfxyz and rmrfxyz authored Jun 27, 2024
1 parent 2cc6366 commit 7177329
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ node_modules
dist
dist-ssr
*.local
.pnp*
yarn.lock
.yarn/*


# Editor directories and files
.vscode/*
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
headers: {
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Embedder-Policy': 'require-corp'
},
},
});

0 comments on commit 7177329

Please sign in to comment.