mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-16 10:46:59 +00:00
add x-puter-no-auth option to puter.workers.exec (#2668)
This commit is contained in:
1 parent
0af0eb127e
commit
55dd9841c5
1 file changed
+2
-1
@@ -67,9 +67,10 @@ export class WorkersHandler {
|
||||
}
|
||||
|
||||
const req = new Request(...args);
|
||||
if ( ! req.headers.get('puter-auth') ) {
|
||||
if ( ! req.headers.get('puter-auth') && !req.headers.get('x-puter-no-auth')) {
|
||||
req.headers.set('puter-auth', puter.authToken);
|
||||
}
|
||||
req.headers.delete('x-puter-no-auth');
|
||||
return fetch(req);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user