问题
Many days ago I change Google Chrome Network tab configuration to show Methods.
Everythings were okay if my origin ajax request URL was not exactly like destination ajax request URL the browser (Google Chrome) send an OPTIONS request to be sure it is secure to send the main request.
So in the Network tab, we can see OPTIONS call and if its response became 200 the browser send the main request, I expect just like below:
But in my Google Chrome, it sent the OPTIONS calls and after getting 200 send the main call but doesn't show OPTIONS call in network tab.
My google chrome (I see below):
How I can fix my Google chrome to see OPTIONS calls in the network tab?
回答1:
Actually, the right answer is in this link.
If anyone wanna see OPTIONS call should:
- open a new tab in Google Chrome
- type this:
chrome://flags/#out-of-blink-cors
- Disable the
Out of blink CORS
- Restart Google Chrome
- Now you can see OPTIONS call
来源:https://stackoverflow.com/questions/57659455/my-google-chrome-doesnt-show-options-requests