cors-anywhere
cors-anywhere copied to clipboard
The URL is invalid: two slashes are needed after the http(s):.
Hello,
I have managed to get cors-anywhere setup on my plesk server :) But I seem to be running into an issue I cannot figure out, no matter what URL I use I am presented with the error: " The URL is invalid: two slashes are needed after the http(s):. "
This error shows no matter what URL I try to access for example:
https://mycorsproxy.url/http://google.com https://mycorsproxy.url/https://google.com
Am I missing something obvious here? Any help is much appreciated, thank you!
Same issue! I´m using Azure Cloud
You have something else running in front of CORS Anywhere that normalizes the URLs. You should disable that URL rewriting mechanism, to preserve the original request URL. If that is not possible at all, an alternative is to omit the scheme.
From a quick search, it seems that Plesk uses Apache. See https://github.com/Rob--W/cors-anywhere/issues/308
For Azure Cloud, see #82.
Thank you for pointing me in the right direction, turning off nginx proxy mode under nginx settings solves the issue in Plesk.
Cloudflare Workers W3C URL JS class has a well known bug that turns "//" into "/" . The CF bug can be googled.
please guide vercel also
If this is useful for someone
Here is a config for nginx
- start your
cors-anywhere
at localhost:4200 - Add this config to the nginx
merge_slashes off;
location / {
proxy_pass http://localhost:4200/;
}