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

isOriginAllowed method in cors package might need to remove the prefix dot char. #3691

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wuwu123
Copy link

@wuwu123 wuwu123 commented Nov 3, 2023

cors 包的 isOriginAllowed 方法在1.5版本之后校验的时候拼接了【.】前缀,的确避免了域名包含的问题,但是将完整的域名(不包含http头部的)的也给误杀了,造成升级之后的配置文件失效;感觉若是想决绝域名屏蔽的问题自己的配置文件添加【.】前缀更加友好

@kevwan kevwan changed the title cors 包的 isOriginAllowed 方法校验感觉去掉拼接的前缀【.】 isOriginAllowed method in cors package might need to remove the prefix dot char. Nov 3, 2023
@kevwan kevwan added area/restful Categorizes issue or PR as related to restful apis. kind/need-more-investigation More investigation is needed. labels Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/restful Categorizes issue or PR as related to restful apis. kind/need-more-investigation More investigation is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants