From d0e0a662262a6eaf86304cea45398c2cfa477ee8 Mon Sep 17 00:00:00 2001 From: Neal Shah Date: Thu, 23 Jul 2026 19:03:24 -0400 Subject: [PATCH] remove unneeded write origin append --- src/puter-js/src/modules/FileSystem/operations/upload.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/puter-js/src/modules/FileSystem/operations/upload.js b/src/puter-js/src/modules/FileSystem/operations/upload.js index 3eb4fef59..a5bb1b783 100644 --- a/src/puter-js/src/modules/FileSystem/operations/upload.js +++ b/src/puter-js/src/modules/FileSystem/operations/upload.js @@ -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; };