env-tweezers 0.1.1 → 0.1.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2 — 2026-11-26
4
+
5
+ - Fixed the browser input page answering "Forbidden" when a value was submitted. The page was served with `Referrer-Policy: no-referrer`, which made browsers send `Origin: null` with the form, and the server refused it. The page now uses `same-origin`.
6
+
3
7
  ## 0.1.1 — 2026-11-25
4
8
 
5
9
  - The command is also installed under the short name `etwz`.
package/lib/cli.js CHANGED
@@ -2990,7 +2990,9 @@ var FORM_CONTENT_TYPE = "application/x-www-form-urlencoded";
2990
2990
  var SECURITY_HEADERS = {
2991
2991
  "Cache-Control": "no-store",
2992
2992
  "Content-Security-Policy": "default-src 'none'; style-src 'unsafe-inline'; form-action 'self'; frame-ancestors 'none'; base-uri 'none'",
2993
- "Referrer-Policy": "no-referrer",
2993
+ // not no-referrer: under it browsers send "Origin: null" with the page's own form POST, which the Origin check
2994
+ // below rejects. same-origin keeps the page URL (it carries the page token) away from every other origin.
2995
+ "Referrer-Policy": "same-origin",
2994
2996
  "X-Content-Type-Options": "nosniff",
2995
2997
  "X-Frame-Options": "DENY"
2996
2998
  };
package/lib/takeover.js CHANGED
@@ -18462,7 +18462,9 @@ var FORM_CONTENT_TYPE = "application/x-www-form-urlencoded";
18462
18462
  var SECURITY_HEADERS = {
18463
18463
  "Cache-Control": "no-store",
18464
18464
  "Content-Security-Policy": "default-src 'none'; style-src 'unsafe-inline'; form-action 'self'; frame-ancestors 'none'; base-uri 'none'",
18465
- "Referrer-Policy": "no-referrer",
18465
+ // not no-referrer: under it browsers send "Origin: null" with the page's own form POST, which the Origin check
18466
+ // below rejects. same-origin keeps the page URL (it carries the page token) away from every other origin.
18467
+ "Referrer-Policy": "same-origin",
18466
18468
  "X-Content-Type-Options": "nosniff",
18467
18469
  "X-Frame-Options": "DENY"
18468
18470
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "env-tweezers",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Local stdio MCP server that lets AI agents read, edit and use env, config and secret files without the secret values entering the conversation",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",