@athenna/http 5.16.0 → 5.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "5.16.0",
3
+ "version": "5.17.0",
4
4
  "description": "The Athenna Http server. Built on top of fastify.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -100,7 +100,7 @@ export class Response {
100
100
  .createRenderer()
101
101
  .share({ request: this.request })
102
102
  .render(view, data);
103
- await this.header('Content-Security-Policy', "default-src 'self' 'unsafe-inline'")
103
+ await this.header('Content-Security-Policy', "default-src 'self' 'unsafe-inline' 'unsafe-eval' 'img-src' 'style-src-elem' 'script-src-elem'")
104
104
  .safeHeader('Content-Type', 'text/html; charset=utf-8')
105
105
  .send(content);
106
106
  this.response.body = content;