Skip to content

Commit

Permalink
chore: changelogs - feature to include custom csp headers from applic…
Browse files Browse the repository at this point in the history
…ation (#2007)
  • Loading branch information
arunvishnun authored Mar 7, 2024
1 parent c912c9f commit 66462dd
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 15 deletions.
10 changes: 0 additions & 10 deletions common/changes/subapp-server/csp-directive_2024-03-01-04-51.json

This file was deleted.

12 changes: 12 additions & 0 deletions packages/subapp-server/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "subapp-server",
"entries": [
{
"version": "2.4.0",
"tag": "subapp-server_v2.4.0",
"date": "Thu, 07 Mar 2024 02:33:25 GMT",
"comments": {
"minor": [
{
"comment": "Ablity to add CSP directives by application."
}
]
}
},
{
"version": "2.3.0",
"tag": "subapp-server_v2.3.0",
Expand Down
9 changes: 8 additions & 1 deletion packages/subapp-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - subapp-server

This log was last generated on Wed, 03 Jan 2024 23:41:10 GMT and should not be manually modified.
This log was last generated on Thu, 07 Mar 2024 02:33:25 GMT and should not be manually modified.

## 2.4.0
Thu, 07 Mar 2024 02:33:25 GMT

### Minor changes

- Ablity to add CSP directives by application.

## 2.3.0
Wed, 03 Jan 2024 23:41:10 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/subapp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "subapp-server",
"version": "2.3.0",
"version": "2.4.0",
"description": "Electrode SubApp app server support",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion samples/poc-subapp-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"redux-logger": "^3.0.6",
"subapp-react": "^1.2.0",
"subapp-redux": "^2.2.1",
"subapp-server": "^2.3.0",
"subapp-server": "^2.4.0",
"subapp-web": "^2.1.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion samples/poc-subapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"redux": "^4.2.1",
"subapp-react": "^1.2.0",
"subapp-redux": "^2.2.1",
"subapp-server": "^2.3.0",
"subapp-server": "^2.4.0",
"subapp-web": "^2.1.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion samples/poc-subappv1-csp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"redux": "^4.2.1",
"subapp-react": "^1.2.0",
"subapp-redux": "^2.2.1",
"subapp-server": "^2.3.0",
"subapp-server": "^2.4.0",
"subapp-web": "^2.1.4",
"crypto": "^1.0.1"
},
Expand Down
1 change: 1 addition & 0 deletions samples/poc-subappv1-csp/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const setCSPHeaderValues = ({styleNonce, scriptNonce}) => {
* Option 3 - Selectively set boolean flag for `cspNonce`. { style: true } will add nonce only
* for styles
*
* cspHeaderValues - A function whose return value is list of CPS headers. If provided, this function will be used to configure headers specified by the application. In the absense of this function, Electrode will configure `script-src` and `style-src` directives based on settings determined by `cspNonce` value
*/

export default {
Expand Down

0 comments on commit 66462dd

Please sign in to comment.