Access to XMLHttpRequest at 'https://cnooc.ddd.com/ddd/TDicCfg/FindDataDictionaryListMobile?TableFieldName=d' from origin 'http://localhost:8100' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
场景:前后端分离,接口请求的时候,一直报这个问题
原因:浏览器在发送get 、post、push、delete请求的时候,会先发送option请求和后端建立连接,如果后端没有对option请求作出相应,也会报此问题