Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ const nextConfig = {
],
headers: async () => {
const headers = [
{
// Anti-clickjacking: only GoodWallet itself and delta may iframe us.
// The delta mobile app uses a native WebView (top-level document), which frame-ancestors does not affect.
source: "/:path*",
headers: [
{
key: "Content-Security-Policy",
value: "frame-ancestors 'self' https://delta.app https://*.delta.app;",
},
],
},
{
//Allow browsers to cache content from public folder for one week, to cut down on the number of edge requests
source: "/:all*(.png|.jpg|.jpeg|.gif|.svg|.ico|.webp|.webmanifest)",
Expand Down
Loading