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

socketio配置跨域请求可能多种选择,可以选择不配置? #968

Open
zd925 opened this issue Mar 21, 2024 · 2 comments
Open

Comments

@zd925
Copy link

zd925 commented Mar 21, 2024

socketio集成相关的网关框架,网关那边配置了相关的跨域请求,如果socketio又处理跨域,
就会重复配置【Access-Control-Allow-Origin:】浏览器就会报cors 字段重复
image

image

@zd925
Copy link
Author

zd925 commented Mar 21, 2024

好像不能不配置,就算getOrigin()为空,也会配置,跳不过了

@zd925
Copy link
Author

zd925 commented Mar 21, 2024

com.corundumstudio.socketio.handler.EncoderHandler#addOriginHeaders

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