-
Notifications
You must be signed in to change notification settings - Fork 25k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
I'm in the process of implementing an login against an oauth based third-party server. As part of the login procedure I need to make an HTTP requests to an endpoint that returns a 302 status code with new Location header and vital session cookies that I need to intercept. Unfortunately the XMLHTTPRequest and the fetch API will automatically follow these redirect so there is no way of accessing or intercepting the required HTTP headers that contain authorization information.
So what I would like to suggest is:
- Add a non standard
nofollow = trueproperty to these API's so we as users can handle the redirect logic our selfs. - Provide a much lower level HTTP interface much like Node's
httpmodule so we can build our own requests modules and use the modules such asrequestfrom npm. - Provide a
tcpinterface so we can add HTTP parsing and WebSocket frame parsing on top of it.
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.