mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-22 05:06:10 +00:00
remove unneeded write origin append
This commit is contained in:
@@ -153,10 +153,8 @@ const createApiHeaders = (authToken) => {
|
||||
'Content-Type': 'application/json',
|
||||
};
|
||||
|
||||
if ( ['web', 'app'].includes(puter.env) ) {
|
||||
headers.Origin = 'https://puter.work';
|
||||
}
|
||||
|
||||
// Origin is not set here: browsers forbid it (and set the real one), and
|
||||
// the non-browser xhrshim already sets `origin: https://puter.work` itself.
|
||||
return headers;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user