Skip to content

Commit

Permalink
dont upgrade to https in dev (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
audisaudisaudis authored Oct 3, 2024
1 parent 809fc8c commit ccc8001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function addCspHeaders(requestHeaders, responseHeaders) {
frame-ancestors 'none';
frame-src 'self';
block-all-mixed-content;
upgrade-insecure-requests;
${process.env.NODE_ENV === "production" ? "upgrade-insecure-requests;" : ""};
connect-src 'self' https://amplitude.nav.no https://sentry.gc.nav.no;
`;

Expand Down

0 comments on commit ccc8001

Please sign in to comment.