Skip to content

Instantly share code, notes, and snippets.

@avipars
Created September 14, 2021 14:33
Show Gist options
  • Save avipars/46d5f87ec8d08485f4a3f186c99ba6b5 to your computer and use it in GitHub Desktop.
Save avipars/46d5f87ec8d08485f4a3f186c99ba6b5 to your computer and use it in GitHub Desktop.
CORS for netlify
/*
Access-Control-Allow-Origin: *
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self';script-src https://gc.zgo.at;;default-src 'self';font-src fonts.gstatic.com;style-src 'self' fonts.googleapis.com;frame-ancestors 'self';
@avipars
Copy link
Author

avipars commented Sep 22, 2021

Content-Security-Policy-Report-Only: default-src 'self'; script-src 'report-sample' 'self' https://d33wubrfki0l68.cloudfront.net/js/ff8ac4c81ce5ed14cd31613de03e5f88b2246884/js/freeshipping.min.js https://gc.zgo.at/count.js; style-src 'report-sample' 'self' https://d33wubrfki0l68.cloudfront.net https://fonts.googleapis.com; object-src 'none'; base-uri 'self'; connect-src 'self'; font-src 'self' https://d33wubrfki0l68.cloudfront.net https://fonts.gstatic.com; frame-src 'self'; img-src 'self'; manifest-src 'self'; media-src 'self'; report-uri https://614321f56985df6b7167f5c0.endpoint.csper.io/; worker-src 'none';

@avipars
Copy link
Author

avipars commented Sep 24, 2021

Content-Security-Policy: default-src 'self';script-src https://gc.zgo.at;img-src https://aviparshan.goatcounter.com/count;default-src 'self';font-src fonts.gstatic.com;style-src 'self' fonts.googleapis.com;frame-ancestors 'self';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment