[Feature] 请问反向代理
#11879
Replies: 1 comment
-
|
我大概定位了下问题,主要原因是Access-Control-Allow-Origin返回俩个。如下图: 我测试的结果是直接访问后端接口不会有Access-Control-Allow-Origin。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1Panel Version
最新
Please describe your needs or suggestions for improvements
1.我有一个网站(前端vue),部署在6680端口,静态网站。

2.前端会访问代理,代理在访问后端服务。代理是18080端口(反向代理),代理的后端服务是127.0.0.1:8080。
3.网站都开启了https,用的自签证书。
4.访问前端6680,无法调通代理服务,显示跨域。
所有能配置跨域相关的地方都配置了,要如何定位该问题?
Please describe the solution you suggest
No response
Additional Information
has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.
No response
Beta Was this translation helpful? Give feedback.
All reactions