You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Bare Client on my websites to bypass CORS policy, but some supported functions did not work as expected.
redirect: "manual" is a supported attribute declared in BareFetchInit, but it seems to have no effects.
constrequest=newRequest("http://1.1.1.1",{// I use this website as an example because it redirects to https with 301 responsemethod: "GET",redirect: "manual"});constresponse=awaitbareClient.fetch(request);// 301 responses should be returned as is, but seems to be followed and returns a redirected response with status 200response.status// should be '301', but is 200response.ok// should be false as 'status' is not 200response.headers.get("location")// should give me the redirect url, but returns null
The text was updated successfully, but these errors were encountered:
I'm using Bare Client on my websites to bypass CORS policy, but some supported functions did not work as expected.
redirect: "manual"
is a supported attribute declared inBareFetchInit
, but it seems to have no effects.The text was updated successfully, but these errors were encountered: