Skip to content

Commit ec44842

Browse files
committed
Drastically reduce console errors for development environment only
1 parent fb39494 commit ec44842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/webpackDevServer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = function(proxy, allowedHost) {
3232
!proxy || process.env.DANGEROUSLY_DISABLE_HOST_CHECK === 'true',
3333
// Add some custom headers to all responses:
3434
headers: {
35-
"Content-Security-Policy-Report-Only": "default-src 'self' https://cdn.isaaccomputerscience.org localhost:8080 https://www.google-analytics.com https://stats.g.doubleclick.net; object-src 'none';",
35+
"Content-Security-Policy-Report-Only": "default-src 'self' https://cdn.isaaccomputerscience.org localhost:8080 https://www.google-analytics.com https://stats.g.doubleclick.net; object-src 'none'; style-src 'self' 'unsafe-inline';",
3636
"Feature-Policy": "geolocation 'none'; camera 'none'; microphone 'none'; accelerometer 'none';",
3737
"X-Clacks-Overhead": "GNU Terry Pratchett",
3838
},

0 commit comments

Comments
 (0)