Allow CORS on /extensions/

This commit is contained in:
jelveh
2025-07-18 20:27:50 -07:00
parent 0858f9932b
commit b8ffc1ada0

View File

@@ -612,7 +612,7 @@ class WebServerService extends BaseService {
req.co_isolation_enabled
;
if ( req.path === '/signup' || req.path === '/login' ) {
if ( req.path === '/signup' || req.path === '/login' || req.path.startsWith('/extensions/') ) {
res.setHeader('Access-Control-Allow-Origin', origin ?? '*');
}
// Website(s) to allow to connect