Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我通过 jquery(跨域)发送 post 请求时,它没有经过身份验证,并且在我通过使用 burp 套件或 http live 标头发送相同的请求时将出现 null,然后它正在工作并且能够进行身份验证,请建议我解决该问题
JavaScript 具有同源策略。您不能使用 XMLHttpRequest 对象向其他域发出请求。
大多数现代浏览器都支持 CORS,或者如果您可以发出 GET 请求,则可以使用 JSONP。如果您不能使用CORS或JSONP,则需要在服务器上使用代理来发送/检索内容。