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
Would be great indeed! Could as well be extended to allow for custom request headers by passing a url-param headers={}&url=url json object which could include User-Agent, Authorization or anything like these.
Certain APIs will block access for clients without a browser-like user-agent. For example, the request
returns an HTML page with an error message. This error is also visible when you try to access the API through allorigins.win.
However, if you pass a browser-like user-agent, the request returns XML with bus departure times:
I think it'd be useful if allOrigins could take a
&user_agent=
parameter that overrides the user-agent in order to allow access to APIs like this.The text was updated successfully, but these errors were encountered: