Skip to content

Commit b256494

Browse files
committed
fix: add some missing quotes to csp strings
1 parent 8d2f3d4 commit b256494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@ function generateRedirectString({filePath, hashes}, publishPath) {
8888
const url = filePath.replace(publishPath, '').replace(/^\/index.html/, '/');
8989
return (
9090
`${url}
91-
Content-Security-Policy: default-src self; script-src unsafe-inline ${hashes['script'].join(" ")}; style-src unsafe-inline ${hashes['style'].join(' ')};
91+
Content-Security-Policy: default-src 'self'; script-src 'unsafe-inline' ${hashes['script'].join(" ")}; style-src 'unsafe-inline' ${hashes['style'].join(' ')};
9292
`)
9393
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "netlify-plugin-csp-headers",
3-
"version": "0.0.1-alpha.02",
3+
"version": "0.0.1-alpha.03",
44
"main": "index.js",
55
"repository": "https://github.com/mdarrik/netlify-plugin-csp-hash.git",
66
"author": "Darrik <30670444+mdarrik@users.noreply.github.com>",

0 commit comments

Comments
 (0)