mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4212665c8 | ||
|
|
97d9bc191c | ||
|
|
dd2a403985 | ||
|
|
7cfa2398e1 |
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [0.0.74](https://github.com/sasjs/server/compare/v0.0.73...v0.0.74) (2022-05-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* csp updates ([7cfa239](https://github.com/sasjs/server/commit/7cfa2398e12c5e515d27c896f36ff91604c2124d))
|
||||||
|
|
||||||
### [0.0.73](https://github.com/sasjs/server/compare/v0.0.72...v0.0.73) (2022-05-10)
|
### [0.0.73](https://github.com/sasjs/server/compare/v0.0.72...v0.0.73) (2022-05-10)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ HELMET_COEP=
|
|||||||
#
|
#
|
||||||
# Example config:
|
# Example config:
|
||||||
# {
|
# {
|
||||||
# "img-src": ["'self'", "domain.com"],
|
# "img-src": ["'self'", "data:"],
|
||||||
# "script-src": ["'self'", "'unsafe-inline'"],
|
# "script-src": ["'self'", "'unsafe-inline'"],
|
||||||
# "script-src-attr": ["'self'", "'unsafe-inline'"]
|
# "script-src-attr": ["'self'", "'unsafe-inline'"]
|
||||||
# }
|
# }
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"img-src": ["'self'", "domen.com"],
|
"img-src": ["'self'", "data:"],
|
||||||
"script-src": ["'self'", "'unsafe-inline'"],
|
"script-src": ["'self'", "'unsafe-inline'"],
|
||||||
"script-src-attr": ["'self'", "'unsafe-inline'"]
|
"script-src-attr": ["'self'", "'unsafe-inline'"]
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,9 @@ export const getEnvCSPDirectives = (
|
|||||||
HELMET_CSP_CONFIG_PATH: string | undefined
|
HELMET_CSP_CONFIG_PATH: string | undefined
|
||||||
) => {
|
) => {
|
||||||
let cspConfigJson = {
|
let cspConfigJson = {
|
||||||
'script-src': ["'self'", "'unsafe-inline'"]
|
'img-src': ["'self'", 'data:'],
|
||||||
|
'script-src': ["'self'", "'unsafe-inline'"],
|
||||||
|
'script-src-attr': ["'self'", "'unsafe-inline'"]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "server",
|
"name": "server",
|
||||||
"version": "0.0.73",
|
"version": "0.0.74",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "server",
|
"name": "server",
|
||||||
"version": "0.0.73",
|
"version": "0.0.74",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "^2.3.1",
|
"prettier": "^2.3.1",
|
||||||
"standard-version": "^9.3.2"
|
"standard-version": "^9.3.2"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "server",
|
"name": "server",
|
||||||
"version": "0.0.73",
|
"version": "0.0.74",
|
||||||
"description": "NodeJS wrapper for calling the SAS binary executable",
|
"description": "NodeJS wrapper for calling the SAS binary executable",
|
||||||
"repository": "https://github.com/sasjs/server",
|
"repository": "https://github.com/sasjs/server",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user