Skip to content

Commit acf8328

Browse files
committed
Disable the form-action CSP directive
1 parent 5603c8f commit acf8328

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/App.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,15 @@ if (process.env.NODE_ENV === "production") {
6868
const app = express();
6969

7070
// Helmet
71-
app.use(helmet());
71+
app.use(
72+
helmet({
73+
contentSecurityPolicy: {
74+
directives: {
75+
"form-action": null,
76+
},
77+
},
78+
}),
79+
);
7280

7381
app.use(morgan("tiny"));
7482

0 commit comments

Comments
 (0)