Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken for firefox and chrome #174

Open
Bug-Reaper opened this issue May 28, 2019 · 13 comments
Open

Broken for firefox and chrome #174

Bug-Reaper opened this issue May 28, 2019 · 13 comments

Comments

@Bug-Reaper
Copy link

I've been reliably using this for about a year and was super shocked when it stopped working pretty recently. Doesn't work with any websites, will provide more info soon but its late now and I'm too tired. I'll also see what I can do in terms of tracking down the issue in the code and/or the spec changes to firefox/chrome which caused this.

@Bug-Reaper
Copy link
Author

See here that this doesn't work any longer:
https://cors-anywhere.herokuapp.com/https://cors-anywhere.herokuapp.com/
returns this error:
Screenshot_2019-05-28_16-28-19

@Rob--W
Copy link
Owner

Rob--W commented May 29, 2019

So far I haven't seen any evidence that there is something broken. Could you provide more details? For example, do you send an unusually large number of requests? (as of #164, the limit is 200 requests per hour)

When opened directly in the browser, every page except for / will result in "Missing required request header. Must specify one of: origin,x-requested-with". This is intentional.

Also, you should not send requests to https://cors-anywhere.herokuapp.com/https://cors-anywhere.herokuapp.com/, but directly to https://cors-anywhere.herokuapp.com/. Because of #42 , such requests are not handled internally, and instead result in a 301 redirect.

@Bug-Reaper
Copy link
Author

Hmm, i’ve Been using this for a year or so now and I originally never got a origin-x error. Is this a new design?

Definitely not hitting the 200 requests per hour and I’m sending requests to the right place I believe.

@Rob--W
Copy link
Owner

Rob--W commented Jul 29, 2019

If you get the error, it means that the request was not a cross-origin request. Either because the request is not cross-origin, or because you used fetch with mode: "no-cors".

@grkblood13
Copy link

I'm experiencing this as well. I've ran my own cors-anywhere server for a while and it just recently stopped working. Here's header info from dev console.

Request URL: http://127.0.0.1:8888/https://upload.wikimedia.org/wikipedia/commons/8/8a/Aspire_TV_logo.JPG
Request Method: GET
Status Code: 400 Header required
Remote Address: 127.0.0.1:8888
Referrer Policy: no-referrer-when-downgrade

@Bug-Reaper
Copy link
Author

Bug-Reaper commented Oct 11, 2019 via email

@Rob--W
Copy link
Owner

Rob--W commented Oct 11, 2019

I'm experiencing this as well. I've ran my own cors-anywhere server for a while and it just recently stopped working. Here's header info from dev console.

Request URL: http://127.0.0.1:8888/https://upload.wikimedia.org/wikipedia/commons/8/8a/Aspire_TV_logo.JPG
Request Method: GET
Status Code: 400 Header required
Remote Address: 127.0.0.1:8888
Referrer Policy: no-referrer-when-downgrade

It is not possible to directly visit the response in a browser tab. If you are able to reproduce the issue via XMLHttpRequest, fetch (or any other API with cross-origin requests), share the test case for reproducing the issue.

@grkblood13
Copy link

grkblood13 commented Oct 11, 2019

The above is via fetch.
Screenshot_2019-10-11_14-25-40
Screenshot_2019-10-11_14-28-19

@grkblood13
Copy link

grkblood13 commented Oct 11, 2019

@Bug-Reaper, how long have m3u8 links been blocked by the fetch api? Any changelog notes on this? Couldn't find anything myself.

@Bug-Reaper
Copy link
Author

I wanna say 8-12 months, but I don't remember. If you check the git commit history and/or releases you can probably find the exact date

@Rob--W
Copy link
Owner

Rob--W commented Oct 11, 2019

@grkblood13 You should show the fetch call and its parameters. It may affect whether CORS is needed or not.

@Bug-Reaper The m3u8 block is not in the source code here. The block is a configuration that only applies to the public CORS Anywhere demo, and it was introduced 7 months ago because the host warned about an impeding shut down of the demo due to abuse (see #164).

@Bug-Reaper
Copy link
Author

@Rob--W
Rodger that, thanks for clarifying! I must have misunderstood that post. Out of curiosity, who threatened to shut you down ?

@grkblood13 Sorry to send you on a wild goose chase

@Rob--W
Copy link
Owner

Rob--W commented Oct 17, 2019

The platform on which I was hosting the application (details in #164).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants