@stacksjs/defaults 0.75.711 → 0.75.712

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.
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.711",
5
+ "version": "0.75.712",
6
6
  "description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.711",
5
+ "version": "0.75.712",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -46,14 +46,14 @@
46
46
  "@iconify-json/f7": "^1.2.2",
47
47
  "@iconify-json/hugeicons": "^1.2.35",
48
48
  "@stacksjs/desktop": "^0.2.960",
49
- "@stacksjs/mobile": "0.75.711",
49
+ "@stacksjs/mobile": "0.75.712",
50
50
  "@stacksjs/sanitizer": "^0.2.960",
51
51
  "@stacksjs/stx": "^0.2.960",
52
- "@stacksjs/strings": "0.75.711",
52
+ "@stacksjs/strings": "0.75.712",
53
53
  "@xterm/addon-fit": "^0.11.0",
54
54
  "@xterm/xterm": "^6.0.0",
55
55
  "ts-qr-codes": "^0.1.8",
56
- "@stacksjs/support": "0.75.711",
57
- "@stacksjs/browser": "0.75.711"
56
+ "@stacksjs/support": "0.75.712",
57
+ "@stacksjs/browser": "0.75.712"
58
58
  }
59
59
  }
@@ -125,12 +125,18 @@ export default {
125
125
  * `buddy dev` and `buddy serve` both print the list at boot, because a page
126
126
  * that can be framed is a deliberate exception worth seeing.
127
127
  *
128
- * Two headers are deliberately NOT sent on pages. A `STACKS_CSP` policy is
129
- * not, because it has only ever reached JSON responses and a blanket policy
130
- * breaks inline stx script bootstrapping, Stripe iframes and OAuth popups.
131
- * `Strict-Transport-Security` is not, because `buddy serve` treats itself as
132
- * production even on a laptop, and HSTS on localhost pins that host to
133
- * HTTPS in your browser for a year.
128
+ * Pages also get `Cross-Origin-Opener-Policy` and `Permissions-Policy`.
129
+ * Stacks adds `Strict-Transport-Security` when `APP_URL` uses HTTPS on a
130
+ * public host.
131
+ * The `hsts`, `crossOriginOpenerPolicy`, and `permissionsPolicy` fields
132
+ * configure those headers. Set a field to `false` to omit its header.
133
+ *
134
+ * Set `csp: 'report-only'` to observe the page policy, then `csp: true`
135
+ * to enforce it. Stacks adds a fresh response nonce to page scripts.
136
+ * `STACKS_CSP` and `STACKS_CSP_REPORT_ONLY` configure the API policy.
137
+ * For reactive pages, enable `csp.enabled`, `csp.precompile` and
138
+ * `csp.useNonce` in `stx.config.ts`. Use `csp.addMetaTag: false` when
139
+ * Stacks supplies the HTTP policy.
134
140
  *
135
141
  * `STACKS_SECURITY_HEADERS_DISABLE=true` turns the whole set off, for a
136
142
  * deployment behind a proxy that injects its own.