Skip to content

Commit a9fa4bc

Browse files
authored
Merge pull request #203 from AthennaIO/develop
chore(response): add more tags to CSP
2 parents a3d1886 + 6e94622 commit a9fa4bc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@athenna/http",
3-
"version": "5.16.0",
3+
"version": "5.17.0",
44
"description": "The Athenna Http server. Built on top of fastify.",
55
"license": "MIT",
66
"author": "João Lenon <[email protected]>",

src/context/Response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class Response {
124124

125125
await this.header(
126126
'Content-Security-Policy',
127-
"default-src 'self' 'unsafe-inline'"
127+
"default-src 'self' 'unsafe-inline' 'unsafe-eval' 'img-src' 'style-src-elem' 'script-src-elem'"
128128
)
129129
.safeHeader('Content-Type', 'text/html; charset=utf-8')
130130
.send(content)

0 commit comments

Comments
 (0)