javascript-solid-server 0.0.34 → 0.0.35
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/package.json +1 -1
- package/src/server.js +2 -1
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -131,9 +131,10 @@ export function createServer(options = {}) {
|
|
|
131
131
|
// Authorization hook - check WAC permissions
|
|
132
132
|
// Skip for pod creation endpoint (needs special handling)
|
|
133
133
|
fastify.addHook('preHandler', async (request, reply) => {
|
|
134
|
-
// Skip auth for pod creation, OPTIONS, IdP routes, mashlib,
|
|
134
|
+
// Skip auth for pod creation, OPTIONS, IdP routes, mashlib, well-known, and notifications
|
|
135
135
|
const mashlibPaths = ['/mashlib.min.js', '/mash.css', '/841.mashlib.min.js'];
|
|
136
136
|
if (request.url === '/.pods' ||
|
|
137
|
+
request.url === '/.notifications' ||
|
|
137
138
|
request.method === 'OPTIONS' ||
|
|
138
139
|
request.url.startsWith('/idp/') ||
|
|
139
140
|
request.url.startsWith('/.well-known/') ||
|