CORS - 从 Postman 伪造 CORS 预检无法返回标头 [英] CORS - Faking a CORS preflight from Postman fails to return headers
本文介绍了CORS - 从 Postman 伪造 CORS 预检无法返回标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我伪造来自 Postman 的 OPTIONS 预检 CORS 请求,我不会从我的 API 中取回 CORS 标头.
If I fake an OPTIONS preflight CORS request from Postman, I don't get the CORS headers back from my API.
推荐答案
我设法让它使用 邮递员拦截器我的设置如下
I managed to get it working using Postman Interceptor The settings I had were as below
这篇关于CORS - 从 Postman 伪造 CORS 预检无法返回标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文