Skip to content

Commit b8ffc1a

Browse files
committed
Allow CORS on /extensions/
1 parent 0858f99 commit b8ffc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/src/modules/web/WebServerService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ class WebServerService extends BaseService {
612612
req.co_isolation_enabled
613613
;
614614

615-
if ( req.path === '/signup' || req.path === '/login' ) {
615+
if ( req.path === '/signup' || req.path === '/login' || req.path.startsWith('/extensions/') ) {
616616
res.setHeader('Access-Control-Allow-Origin', origin ?? '*');
617617
}
618618
// Website(s) to allow to connect

0 commit comments

Comments
 (0)