I want to access https://third-party-url/ from my localhost But chrome is throwing cors error I am using window 11 and chrome version : Version 106.0.5249.103 which is latest version till 2022-10-10
Asked
Active
Viewed 1.2k times
7

sideshowbarker
- 81,827
- 26
- 193
- 197

vimal Arya
- 71
- 1
- 1
- 5
-
[Disable same origin policy in Chrome](https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome) – sideshowbarker Oct 10 '22 at 06:34
1 Answers
5
Run cmd from Chrome's path.
chrome.exe --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp
This command is only disable cors in the window that opens after running the command. If you close this window, you can use the same command again.

Onur İlyas Tokay
- 84
- 5
-
3
-
I think you should also close all running chrome instances before running this comnand, otherwise it may ignore the flags and just open new subprocess of existing chrome. – Maroš Beťko Mar 16 '23 at 14:14