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

建议提供全局配置跨域的方法 #307

Closed
huangdali opened this issue Sep 27, 2020 · 3 comments
Closed

建议提供全局配置跨域的方法 #307

huangdali opened this issue Sep 27, 2020 · 3 comments

Comments

@huangdali
Copy link

每个方法都加跨域配置的话会显得代码很冗余,也不方便,建议提供全局配置跨域的途径

@huangdali
Copy link
Author

@yanzhenjie 大神,下个版本可否考虑一下这个功能

@yanzhenjie
Copy link
Owner

yanzhenjie commented Oct 9, 2020

嗯,正在考虑一个合适的方案。


另外可以在拦截器中统一拦截,检测到OPTIONS方法时,允许跨域并拦截请求。

@yanzhenjie
Copy link
Owner

#305

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

2 participants