You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I see that you are using app.userAgentFallBack = 'user-agent' in UASwitcher. I am also working on a similar electron based browser app, and I am also using this technique, but some websites are breaking due to CORS in my app but they aren't breaking in MIN Browser. Any guidance will be appreciated.
I have noticed that my request headers dont contain :
I added the headers even then I am getting this error :
Access to XMLHttpRequest at 'https://abcd/authenticate' from origin 'https://abcd-efg.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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I see that you are using app.userAgentFallBack = 'user-agent' in UASwitcher. I am also working on a similar electron based browser app, and I am also using this technique, but some websites are breaking due to CORS in my app but they aren't breaking in MIN Browser. Any guidance will be appreciated.
I have noticed that my request headers dont contain :
sec-ch-ua:"Not A(Brand";v="8", "Chromium";v="132"
sec-ch-ua-mobile:?0
sec-ch-ua-platform:"Windows"
and Min's Does.
I added the headers even then I am getting this error :
Access to XMLHttpRequest at 'https://abcd/authenticate' from origin 'https://abcd-efg.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.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions