Skip to content

[Bug] Suggest adding a setting to hide cross-origin requests under Reverse Proxy → Edit → Advanced Settings #12348

@TawaLaot

Description

@TawaLaot

Contact Information

No response

1Panel Version

2.1.5

Problem Description

页面位置,添加隐藏开关Access-Control-Allow-Origin 一个,Access-Control-Allow-Methods一个
Image

目前需要手动添加,不添加就会出现跨域问题,添加后就可以正常访问。
Image

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions