Skip to content

Commit

Permalink
chore: Add security header (#10694)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->


<!-- start pr-codex -->

---

## PR-Codex overview
This PR adds a Content-Security-Policy header with frame-ancestors
'self' value to improve security in `next.config.mjs`.

### Detailed summary
- Added Content-Security-Policy header with frame-ancestors 'self'
value.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
chefjackson authored Sep 18, 2024
1 parent 8ccbe83 commit 7b96db8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/gamification/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ const nextConfig = {
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin-allow-popups',
},
{
key: 'Content-Security-Policy',
value: `frame-ancestors 'self'`,
},
],
},
]
Expand Down

0 comments on commit 7b96db8

Please sign in to comment.