@magento/upward-security-headers 1.0.4 → 1.0.6-alpha.1

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/upward.yml +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magento/upward-security-headers",
3
- "version": "1.0.4",
3
+ "version": "1.0.6-alpha.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,8 +13,8 @@
13
13
  "author": "Magento Commerce",
14
14
  "license": "(OSL-3.0 OR AFL-3.0)",
15
15
  "peerDependencies": {
16
- "@magento/pwa-buildpack": "~10.0.0",
17
- "@magento/venia-ui": "~8.0.0",
16
+ "@magento/pwa-buildpack": "11.1.0-alpha.1",
17
+ "@magento/venia-ui": "9.2.0-alpha.1",
18
18
  "webpack": "~4.46.0"
19
19
  },
20
20
  "pwa-studio": {
package/upward.yml CHANGED
@@ -6,6 +6,7 @@ veniaSecurityHeaders:
6
6
  engine: mustache
7
7
  provide:
8
8
  backend: env.MAGENTO_BACKEND_URL
9
+ pageTypeNonce: veniaPageTypeNonce.nonce
9
10
  template:
10
11
  resolver: conditional
11
12
  when:
@@ -13,6 +14,10 @@ veniaSecurityHeaders:
13
14
  pattern: development
14
15
  use:
15
16
  inline: ""
17
+ - matches: env.SCRIPT_NAME
18
+ pattern: '.*\.php$'
19
+ use:
20
+ inline: "script-src http: https: {{ backend }}{{#pageTypeNonce}} 'nonce-{{ pageTypeNonce }}'{{/pageTypeNonce}}; style-src 'self' blob: https: 'unsafe-inline' {{ backend }}; img-src data: http: https:; object-src 'none'; base-uri 'none'; child-src 'self'; font-src 'self' fonts.gstatic.com; frame-src assets.braintreegateway.com *.youtube.com *.youtu.be *.vimeo.com"
16
21
  default:
17
22
  inline: "script-src http: https: {{ backend }}; style-src 'self' blob: https: 'unsafe-inline' {{ backend }}; img-src data: http: https:; object-src 'none'; base-uri 'none'; child-src 'self'; font-src 'self' fonts.gstatic.com; frame-src assets.braintreegateway.com *.youtube.com *.youtu.be *.vimeo.com"
18
23
  strict-transport-security: