Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example 里的 cors 方法不生效 #140

Open
freeTheo opened this issue Sep 15, 2024 · 1 comment
Open

example 里的 cors 方法不生效 #140

freeTheo opened this issue Sep 15, 2024 · 1 comment

Comments

@freeTheo
Copy link

Describe the bug
使用example里的cors例子处理跨域时,发现options请求根本到不了这个中间件,导致设置的的Access-Control-Allow-Headers 不生效,浏览器直接报cors错误
示例代码:
image

故障图例:
image

使用的临时解决办法:
image

@freeTheo
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant