├── .github └── workflows │ ├── codeql-analysis.yml │ └── jest-test-suite.yml ├── .gitignore ├── BuyMeACoffee.png ├── LICENSE ├── README.md ├── functions.js ├── index.js ├── manifest.yml ├── package.json ├── policies.md ├── tests ├── e2e │ ├── all-or-html-only │ │ ├── _headers │ │ ├── index.html │ │ └── nested │ │ │ └── index.html │ ├── exclude-paths │ │ ├── _headers │ │ ├── exclude │ │ │ ├── and-also-this │ │ │ │ └── index.html │ │ │ ├── index.html │ │ │ └── this-folder │ │ │ │ └── index.html │ │ ├── include │ │ │ └── index.html │ │ └── index.html │ ├── exclude-wildcards │ │ ├── _headers │ │ ├── exclude │ │ │ └── index.html │ │ ├── include │ │ │ └── index.html │ │ ├── index.html │ │ ├── script.js │ │ └── stylesheet.css │ ├── index.test.js │ ├── nested-folder-paths │ │ ├── _headers │ │ ├── index.html │ │ └── nested │ │ │ └── index.html │ ├── nested-folders-with-nonindex │ │ ├── _headers │ │ ├── index.html │ │ └── nested │ │ │ └── 404.html │ ├── no-generated-csp │ │ ├── _headers │ │ └── index.html │ ├── nonindex-files │ │ ├── 404.html │ │ └── _headers │ ├── report-only │ │ ├── _headers │ │ └── index.html │ ├── report-to │ │ ├── _headers │ │ └── index.html │ ├── report-uri-and-report-to │ │ ├── _headers │ │ └── index.html │ ├── report-uri │ │ ├── _headers │ │ └── index.html │ ├── script-elements │ │ ├── _headers │ │ └── index.html │ └── scripts-and-styles │ │ ├── _headers │ │ └── index.html └── functions │ ├── buildCSPArray.test.js │ ├── createFileProcessor.test.js │ ├── mergeWithDefaultPolicies.test.js │ └── splitToGlobalAndLocal.test.js └── yarn.lock /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/jest-test-suite.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/.github/workflows/jest-test-suite.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /BuyMeACoffee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/BuyMeACoffee.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/README.md -------------------------------------------------------------------------------- /functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/functions.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/index.js -------------------------------------------------------------------------------- /manifest.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/manifest.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/package.json -------------------------------------------------------------------------------- /policies.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/policies.md -------------------------------------------------------------------------------- /tests/e2e/all-or-html-only/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/all-or-html-only/_headers -------------------------------------------------------------------------------- /tests/e2e/all-or-html-only/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/all-or-html-only/index.html -------------------------------------------------------------------------------- /tests/e2e/all-or-html-only/nested/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/all-or-html-only/nested/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-paths/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-paths/_headers -------------------------------------------------------------------------------- /tests/e2e/exclude-paths/exclude/and-also-this/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-paths/exclude/and-also-this/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-paths/exclude/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-paths/exclude/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-paths/exclude/this-folder/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-paths/exclude/this-folder/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-paths/include/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-paths/include/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-paths/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-paths/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-wildcards/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-wildcards/_headers -------------------------------------------------------------------------------- /tests/e2e/exclude-wildcards/exclude/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-wildcards/exclude/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-wildcards/include/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-wildcards/include/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-wildcards/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/exclude-wildcards/index.html -------------------------------------------------------------------------------- /tests/e2e/exclude-wildcards/script.js: -------------------------------------------------------------------------------- 1 | console.log('Hello world') 2 | -------------------------------------------------------------------------------- /tests/e2e/exclude-wildcards/stylesheet.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: blue; 3 | } -------------------------------------------------------------------------------- /tests/e2e/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/index.test.js -------------------------------------------------------------------------------- /tests/e2e/nested-folder-paths/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/nested-folder-paths/_headers -------------------------------------------------------------------------------- /tests/e2e/nested-folder-paths/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/nested-folder-paths/index.html -------------------------------------------------------------------------------- /tests/e2e/nested-folder-paths/nested/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/nested-folder-paths/nested/index.html -------------------------------------------------------------------------------- /tests/e2e/nested-folders-with-nonindex/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/nested-folders-with-nonindex/_headers -------------------------------------------------------------------------------- /tests/e2e/nested-folders-with-nonindex/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/nested-folders-with-nonindex/index.html -------------------------------------------------------------------------------- /tests/e2e/nested-folders-with-nonindex/nested/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/nested-folders-with-nonindex/nested/404.html -------------------------------------------------------------------------------- /tests/e2e/no-generated-csp/_headers: -------------------------------------------------------------------------------- 1 | / 2 | Content-Security-Policy: default-src 'self'; -------------------------------------------------------------------------------- /tests/e2e/no-generated-csp/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/no-generated-csp/index.html -------------------------------------------------------------------------------- /tests/e2e/nonindex-files/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/nonindex-files/404.html -------------------------------------------------------------------------------- /tests/e2e/nonindex-files/_headers: -------------------------------------------------------------------------------- 1 | /*.html 2 | Content-Security-Policy: default-src 'self'; -------------------------------------------------------------------------------- /tests/e2e/report-only/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/report-only/_headers -------------------------------------------------------------------------------- /tests/e2e/report-only/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/report-only/index.html -------------------------------------------------------------------------------- /tests/e2e/report-to/_headers: -------------------------------------------------------------------------------- 1 | / 2 | Content-Security-Policy: default-src 'self'; report-to csp-endpoint; -------------------------------------------------------------------------------- /tests/e2e/report-to/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/report-to/index.html -------------------------------------------------------------------------------- /tests/e2e/report-uri-and-report-to/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/report-uri-and-report-to/_headers -------------------------------------------------------------------------------- /tests/e2e/report-uri-and-report-to/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/report-uri-and-report-to/index.html -------------------------------------------------------------------------------- /tests/e2e/report-uri/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/report-uri/_headers -------------------------------------------------------------------------------- /tests/e2e/report-uri/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/report-uri/index.html -------------------------------------------------------------------------------- /tests/e2e/script-elements/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/script-elements/_headers -------------------------------------------------------------------------------- /tests/e2e/script-elements/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/script-elements/index.html -------------------------------------------------------------------------------- /tests/e2e/scripts-and-styles/_headers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/scripts-and-styles/_headers -------------------------------------------------------------------------------- /tests/e2e/scripts-and-styles/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/e2e/scripts-and-styles/index.html -------------------------------------------------------------------------------- /tests/functions/buildCSPArray.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/functions/buildCSPArray.test.js -------------------------------------------------------------------------------- /tests/functions/createFileProcessor.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/functions/createFileProcessor.test.js -------------------------------------------------------------------------------- /tests/functions/mergeWithDefaultPolicies.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/functions/mergeWithDefaultPolicies.test.js -------------------------------------------------------------------------------- /tests/functions/splitToGlobalAndLocal.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/tests/functions/splitToGlobalAndLocal.test.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcelloTheArcane/netlify-plugin-csp-generator/HEAD/yarn.lock --------------------------------------------------------------------------------