mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-07 05:30:31 -06:00
Allow CORS on /extensions/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user