1Panel-dev / 1Panel-dev/1Panel
[Bug] Suggest adding a setting to hide cross-origin requests under Reverse Proxy → Edit → Advanced Settings
Open
@wanghe-fit2cloud is already working on this.
Since Mar 26, 2026.
type: feature-request
- Dominant language
- Go
- Stars
- 37k
- Forks
- 3.4k
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 105
Description
Contact Information
No response
1Panel Version
2.1.5
Problem Description
页面位置,添加隐藏开关Access-Control-Allow-Origin 一个,Access-Control-Allow-Methods一个
目前需要手动添加,不添加就会出现跨域问题,添加后就可以正常访问。
Steps to Reproduce
创建反向代理,前端项目部署到服务器并通过代理访问后端api,将出现跨域问题,在反向代理中设置跨域,无法生效,必须手动添加,才能正常访问。
proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods;
The expected correct result
proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods;
Related log output
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.