@standardagents/builder 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -19824,6 +19824,12 @@ function addCorsHeaders(response) {
19824
19824
  return response;
19825
19825
  }
19826
19826
 
19827
+ // Preserve Set-Cookie exactly. Rebuilding a Response from response.headers can
19828
+ // drop cookie headers in Worker runtimes because Set-Cookie is special.
19829
+ if (response.headers.has("Set-Cookie")) {
19830
+ return response;
19831
+ }
19832
+
19827
19833
  // Skip if already has CORS headers
19828
19834
  if (response.headers.has("Access-Control-Allow-Origin")) {
19829
19835
  return response;