Skip to content

Commit 3b35dff

Browse files
committed
chore: remove header that clashes with rjsf ajv validation
1 parent 01a12c6 commit 3b35dff

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

bciers/next.config.base.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
const { withSentryConfig } = require("@sentry/nextjs");
33
const path = require("node:path");
4-
const isLocal = process.env.ENVIRONMENT === "local";
54

6-
const cspHeader = `
7-
default-src 'self';
8-
script-src 'self' 'unsafe-inline' ${isLocal ? " 'unsafe-eval'" : ""};
9-
style-src 'self' 'unsafe-inline';
10-
img-src 'self' blob: data:;
11-
font-src 'self';
12-
object-src 'none';
13-
base-uri 'self';
14-
form-action 'self';
15-
frame-ancestors 'none';
16-
upgrade-insecure-requests;
17-
`;
185
const baseConfig = {
196
poweredByHeader: false,
207
reactStrictMode: true,
@@ -76,10 +63,6 @@ const baseConfig = {
7663
{
7764
source: "/(.*)",
7865
headers: [
79-
{
80-
key: "Content-Security-Policy",
81-
value: cspHeader.replace(/\n/g, ""),
82-
},
8366
{
8467
key: "X-Content-Type-Options",
8568
value: "nosniff",

0 commit comments

Comments
 (0)