Skip to content

Commit

Permalink
change default src
Browse files Browse the repository at this point in the history
  • Loading branch information
craftycram committed Feb 19, 2024
1 parent 681bf55 commit 2d6e06c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blaze",
"version": "2.0.5",
"version": "2.0.6",
"description": "blazing fast ci/cd. small rest api service to receive ghcr event hooks to update services running in a dockerized portainer instance",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import https from 'https';
import type { Application, Request, Response } from 'express';
import favicon from 'serve-favicon';
import path from 'path';
import { expressCspHeader, NONE, SELF } from 'express-csp-header';
import { expressCspHeader, SELF } from 'express-csp-header';

dotenv.config();

Expand Down Expand Up @@ -41,7 +41,7 @@ app.use((_req: Request, res: Response, next: () => void): void => {
app.use(
expressCspHeader({
directives: {
'default-src': [NONE],
'default-src': [SELF],
'img-src': [SELF],
},
}),
Expand Down

0 comments on commit 2d6e06c

Please sign in to comment.