Merge pull request #309 from promasu/patch-3

Made CSP syntax in nginx example conf valid
pull/1/head
ansuz 6 years ago committed by GitHub
commit 6457d2219e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,15 +34,15 @@ server {
# Will not set any header if it is emptystring # Will not set any header if it is emptystring
add_header Cache-Control $cacheControl; add_header Cache-Control $cacheControl;
set $styleSrc "'unsafe-inline' 'self' your-main-domain.com"; set $styleSrc "'unsafe-inline' 'self' your-main-domain.com";
set $scriptSrc "'self' your-main-domain.com"; set $scriptSrc "'self' your-main-domain.com";
set $connectSrc "'self' https://your-main-domain.com wss://your-main-domain.com https://api.your-main-domain.com wss://your-main-domain.com your-main-domain.com blob: your-main-domain.com"; set $connectSrc "'self' https://your-main-domain.com wss://your-main-domain.com your-main-domain.com https://api.your-main-domain.com blob: your-main-domain.com";
set $fontSrc "'self' data: your-main-domain.com"; set $fontSrc "'self' data: your-main-domain.com";
set $imgSrc "data: * blob:"; set $imgSrc "'self' data: * blob: your-main-domain.com";
set $frameSrc "'self' your-sandbox-domain.com blob:"; set $frameSrc "'self' your-sandbox-domain.com blob: your-sandbox-domain.com";
set $mediaSrc "* blob:"; set $mediaSrc "'self' data: * blob: your-main-domain.com";
set $childSrc "https://your-main-domain.com"; set $childSrc "https://your-main-domain.com";
set $workerSrc "https://your-main-domain.com"; set $workerSrc "https://your-main-domain.com";
set $unsafe 0; set $unsafe 0;
if ($uri = "/pad/inner.html") { set $unsafe 1; } if ($uri = "/pad/inner.html") { set $unsafe 1; }

Loading…
Cancel
Save