My Google chrome doesn't show OPTIONS requests [duplicate]

余生长醉 提交于 2020-05-28 04:45:09

问题


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:

  1. open a new tab in Google Chrome
  2. type this: chrome://flags/#out-of-blink-cors
  3. Disable the Out of blink CORS
  4. Restart Google Chrome
  5. Now you can see OPTIONS call


来源:https://stackoverflow.com/questions/57659455/my-google-chrome-doesnt-show-options-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!