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
The calls are ignoring all the Headers Parameters with "Proxy-" prefix.
In my example the request does not show:
Proxy-Test, Proxy-CustomAuth or Proxy-Authorization
The text was updated successfully, but these errors were encountered:
Looks like /Proxy-.*/ is a reserved pattern within the browser:
Forbidden header name
A forbidden header name is an HTTP header name that cannot be modified programmatically; specifically, an HTTP request header name.
These are forbidden, so the user agent retains full control over them. Names starting with Sec- are reserved for creating new headers safe from APIs using Fetch that grant developers control over headers, such as XMLHttpRequest.
Forbidden header names start with Proxy- or Sec-, or consist of one of the following (...)
This leaves us in the same position we're at in swagger-api/swagger-js#1163 - as long as we're playing in the browser's sandbox, we have to play by these rules 😕
Context
This started as a research from SO question:
https://stackoverflow.com/questions/47509258/add-proxy-authorization-header-in-swagger
Here is an example reproducing the issue:
http://swashbuckletest.azurewebsites.net/swagger/ui/index?filter=ValueProvider#/ValueProvider/ValueProvider_Put
Expected Behavior
All the headers params should be send
Current Behavior
The calls are ignoring all the Headers Parameters with "Proxy-" prefix.
In my example the request does not show:
Proxy-Test, Proxy-CustomAuth or Proxy-Authorization
The text was updated successfully, but these errors were encountered: