@holo-js/security 0.1.9 → 0.2.0
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.
|
@@ -217,7 +217,7 @@ function matchesPathPattern(pathname, pattern) {
|
|
|
217
217
|
function isExcludedPath(request) {
|
|
218
218
|
const { except } = getSecurityRuntime().config.csrf;
|
|
219
219
|
const pathname = new URL(request.url).pathname;
|
|
220
|
-
return except.some((pattern) => matchesPathPattern(pathname, pattern));
|
|
220
|
+
return pathname === "/broadcasting/auth" || except.some((pattern) => matchesPathPattern(pathname, pattern));
|
|
221
221
|
}
|
|
222
222
|
function normalizeForwardedValue(value) {
|
|
223
223
|
return value.trim().replace(/^"|"$/g, "").toLowerCase();
|
package/dist/index.mjs
CHANGED
package/dist/next/server.mjs
CHANGED
package/dist/nuxt/server.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holo-js/security",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Holo-JS Framework - CSRF and rate-limit contracts, config, and runtime seams",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"test": "vitest --run --coverage"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@holo-js/config": "^0.
|
|
56
|
+
"@holo-js/config": "^0.2.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"h3": "^1.15.11",
|