diff options
Diffstat (limited to 'src/javascript')
-rw-r--r-- | src/javascript/jsc/webcore/response.zig | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/javascript/jsc/webcore/response.zig b/src/javascript/jsc/webcore/response.zig index a72c1d134..7043769fa 100644 --- a/src/javascript/jsc/webcore/response.zig +++ b/src/javascript/jsc/webcore/response.zig @@ -667,8 +667,6 @@ pub const Fetch = struct { .{}, ); - const fetch_error_cant_fetch_same_origin = "fetch to same-origin on the server is not supported yet - sorry! (it would just hang forever)"; - pub const FetchTasklet = struct { promise: *JSInternalPromise = undefined, http: HTTPClient.AsyncHTTP = undefined, @@ -975,11 +973,6 @@ pub const Fetch = struct { return JSPromise.rejectedPromiseValue(globalThis, ZigString.init(fetch_error).toErrorInstance(globalThis)).asRef(); } - if (url.origin.len > 0 and strings.eql(url.origin, VirtualMachine.vm.bundler.options.origin.origin)) { - const fetch_error = fetch_error_cant_fetch_same_origin; - return JSPromise.rejectedPromiseValue(globalThis, ZigString.init(fetch_error).toErrorInstance(globalThis)).asRef(); - } - var header_entries: Headers.Entries = .{}; var header_buf: string = ""; |