测试Cloud版本-服务调用测试浏览器出现跨域情况

Blade 未结 1 909
stx510
stx510 剑圣 2021-04-25 12:27

一、该问题的重现步骤是什么?

1. 准备软件环境

2. 启动全部服务

3. 打开http://127.0.0.1:18000/doc.html#/home


二、你期待的结果是什么?实际看到的又是什么?

希望能获取token信息

实际看到浏览器提示:

Access to XMLHttpRequest at 'http://localhost/blade-auth/oauth/token' from origin 'http://127.0.0.1:18000' has been blocked by CORS policy: Request header field request-origion is not allowed by Access-Control-Allow-Headers in preflight response.

localhost/blade-auth/oauth/token:1 Failed to load resource: net::ERR_FAILED


Access to XMLHttpRequest at 'http://localhost/blade-auth/oauth/token' from origin 'http://127.0.0.1:18000' has been blocked by CORS policy: Request header field request-origion is not allowed by Access-Control-Allow-Headers in preflight response.

chunk-vendors.9a4add2b.js:2 POST http://localhost/blade-auth/oauth/token net::ERR_FAILED


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

BladeX

2.8.0.RELEASE.    

MacOS Big Sur 11.2.3    

Google Chrome 版本 92.0.4484.7(正式版本)dev (x86_64)


四、请提供详细的错误堆栈信息,这很重要。

image.pngimage.pngimage.png


五、若有更多详细信息,请在下面提供。

1条回答
  • 2021-04-26 10:22

    看下这个提交:https://center.bladex.cn/blade/BladeX/commit/9b8de795f71b17546e79ab815af691c6aa71039c

    0 讨论(1)
代码语言
提交回复