titanium-web-proxy icon indicating copy to clipboard operation
titanium-web-proxy copied to clipboard

Access to XMLHttpRequest at '' from origin '' has been blocked by CORS policy

Open MrMAmiri opened this issue 4 years ago • 4 comments

Hi, When i use chrome browser without proxy, it works fine, but with Titanium Proxy it does not work for some requests:

Access to XMLHttpRequest at 'https://webapi.papara.com/validate/phone' from origin 'https://www.papara.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

MrMAmiri avatar Dec 04 '20 08:12 MrMAmiri

I realized when i call website on Proxy, it respond like this:

Error 1020 Ray ID: 5fc49017a9ffe003 • 2020-12-04 09:39:54 UTC Access denied

Cloudflare Ray ID: 5fc49017a9ffe003 • Your IP: x.x.x.x • Performance & security by Cloudflare

MrMAmiri avatar Dec 04 '20 09:12 MrMAmiri

I solved it, it was because of Certification. Now the problem is, when i use proxy, chrome shows a human verification.

MrMAmiri avatar Dec 04 '20 12:12 MrMAmiri

If the proxy is running on a different public IP address, and if the website you are browsing uses Google ReCaptcha, it may flag your proxy IP as having poor reputation. Based on that ReCaptacha on site may ask you for human verification.

If that is the case, adding proxy forward headers may solve the issue. I am not sure. https://systemoverlord.com/2020/03/25/security-101-x-forwarded-for-vs-forwarded-vs-proxy.html

justcoding121 avatar Dec 11 '20 21:12 justcoding121

I solved it, it was because of Certification. Now the problem is, when i use proxy, chrome shows a human verification.

Did you solve that issue?

georgait avatar Jan 26 '22 23:01 georgait