Postman extension get a response, but my jquery request not [duplicate]

我们两清 提交于 2019-11-30 06:54:50

Just to help future fellows seeking for this specific question: Why POSTMAN works and my jQuery don't!

The answer is quite simple, actually: Chrome Extensions are allowed to do so!

Regular web pages can use the XMLHttpRequest object to send and receive data from remote servers, but they're limited by the same origin policy. Extensions aren't so limited. An extension can talk to remote servers outside of its origin, as long as it first requests cross-origin permissions.

https://developer.chrome.com/extensions/xhr

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