Provide env var to overwrite user agent - #180
Conversation
|
Why? Note that the standard allows clients to already change the |
|
Well, Chrome is the main reason. The bug is there since 2015 and has the lowest priority. I don't think they're going to fix it soon. |
I mean, why do you want to override the user agent from CORS Anywhere? This seems like quite specific functionality that is not generally useful to most users. |
|
I've got a website, which redirects to mobile version based on User-Agent. Since I'm accessing it via Afaik, it's a common trick to redirect to mobile version based on User-Agent. So, may be I'm not alone in this trouble. P.S. If you want more details, I'm not trying to do anything shady. I'm developing an online RSS reader, and that website also redirects its RSS link to the mobile version, but their mobile version doesn't have that RSS resource (i.e. I get HTTP 404 after the redirect). Clearly, this is a misconfiguration on their side. I contacted them, but they refused to fix it, because 'users should use special applications to access RSS, not the browser' (their answer). |
Hi,
This PR adds the
CORSANYWHERE_USERAGENTenv var to overwrite user agent.