|
@@ -15,9 +15,9 @@ module.exports = function(environment) {
|
|
|
|
|
|
contentSecurityPolicy: {
|
|
contentSecurityPolicy: {
|
|
'default-src': "'none'",
|
|
'default-src': "'none'",
|
|
- 'script-src': "'self' 'unsafe-inline' 'unsafe-eval' https://cdn.mxpnl.com http://localhost:8000", // Allow scripts from https://cdn.mxpnl.com and Django runserver
|
|
|
|
|
|
+ 'script-src': "'self' 'unsafe-inline' 'unsafe-eval' https://cdn.mxpnl.com", // Allow scripts from https://cdn.mxpnl.com
|
|
'font-src': "'self' http://fonts.gstatic.com", // Allow fonts to be loaded from http://fonts.gstatic.com
|
|
'font-src': "'self' http://fonts.gstatic.com", // Allow fonts to be loaded from http://fonts.gstatic.com
|
|
- 'connect-src': "'self' https://api.mixpanel.com http://localhost:8000", // Allow data (ajax/websocket) from api.mixpanel.com, custom-api.local and Django runserver
|
|
|
|
|
|
+ 'connect-src': "'self' https://api.mixpanel.com", // Allow data (ajax/websocket) from api.mixpanel.com, custom-api.local
|
|
'img-src': "'self'",
|
|
'img-src': "'self'",
|
|
'style-src': "'self' 'unsafe-inline' http://fonts.googleapis.com", // Allow inline styles and loaded CSS from http://fonts.googleapis.com
|
|
'style-src': "'self' 'unsafe-inline' http://fonts.googleapis.com", // Allow inline styles and loaded CSS from http://fonts.googleapis.com
|
|
'media-src': "'self'"
|
|
'media-src': "'self'"
|
|
@@ -76,15 +76,6 @@ module.exports = function(environment) {
|
|
|
|
|
|
if (environment === 'production') {
|
|
if (environment === 'production') {
|
|
ENV.locationType = 'django-location';
|
|
ENV.locationType = 'django-location';
|
|
- ENV.contentSecurityPolicy = {
|
|
|
|
- 'default-src': "'none'",
|
|
|
|
- 'script-src': "'self' 'unsafe-inline' 'unsafe-eval' https://cdn.mxpnl.com", // Allow scripts from https://cdn.mxpnl.com and Django runserver
|
|
|
|
- 'font-src': "'self' http://fonts.gstatic.com", // Allow fonts to be loaded from http://fonts.gstatic.com
|
|
|
|
- 'connect-src': "'self' https://api.mixpanel.com", // Allow data (ajax/websocket) from api.mixpanel.com, custom-api.local and Django runserver
|
|
|
|
- 'img-src': "'self'",
|
|
|
|
- 'style-src': "'self' 'unsafe-inline' http://fonts.googleapis.com", // Allow inline styles and loaded CSS from http://fonts.googleapis.com
|
|
|
|
- 'media-src': "'self'"
|
|
|
|
- };
|
|
|
|
}
|
|
}
|
|
|
|
|
|
return ENV;
|
|
return ENV;
|