Rob--W / cors-anywhere

CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.
MIT License
8.5k stars 5.92k forks source link

live radio use case: Missing required request header. Must specify one of: origin,x-requested-with #481

Closed narshingbari closed 3 months ago

narshingbari commented 3 months ago

Dear respected sir please help me Actually i am trying to use http live radio url in my https website . I don't know who made this site https://www.liveradio.es/ its working fine like https://www.liveradio.es/http://202.144.155.12/radio1

But i deployed cors-anywhere on Render https://cors-anywhere-kzu4.onrender.com/ by watching this tutorial video : https://www.youtube.com/watch?v=5SvCeHyKxus not woking https://cors-anywhere-kzu4.onrender.com/http://202.144.155.12/radio1 but it not working getting this message : Missing required request header. Must specify one of: origin,x-requested-with

please anyone help me Screenshot 2024-03-29 081552

Rob--W commented 3 months ago

Opening the URL directly in the browser results in Missing required request header. Must specify one of: origin,x-requested-with because such a request is different from when the web application uses fetch, XMLHttpRequest or any other API. The "error" on its own does not provide any useful information for debugging your web application, and you should use your browser's developer tools to see the actual requests / responses.

On to your specific problem: A web application with radio usually has two subresource request types:

For the radio to work smoothly, you need to make sure that you are prepending your CORS Anywhere server URL before all requests.

I'm going to close this issue, since it is not a problem with CORS Anywhere.

narshingbari commented 3 months ago

Dear sir i already emailed you at rob@robwu.nl Could you please help me to do that i will pay you sir, i need this

Rob--W commented 3 months ago

Your email does not contain anything that isn't already here.

In my previous reply (above) I've already explained the likely cause of your issue. Implement what I am suggesting in your web app and your issue will probably disappear. This is not an issue with CORS Anywhere.

narshingbari commented 3 months ago

Dear sir i dont have too much knowledge for it actually this site made by your project its working https://www.liveradio.es/ then why not working my one could you please guide me properly 🙏