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

建议加入开发常用的测试域名后缀 #71

Open
void285 opened this issue Jun 19, 2018 · 0 comments
Open

建议加入开发常用的测试域名后缀 #71

void285 opened this issue Jun 19, 2018 · 0 comments

Comments

@void285
Copy link

void285 commented Jun 19, 2018

本地测试开发时设置的一些域名用这个whitelist,chrome会报EMPTY_RESPONSE的错误,我看源码中这块是针对某类后缀做统一设置的,建议加入local、dev、test等常用的本地测试用域名。

	if (suffix == "cn") {
		return true;
	} 

修改为:

	if (suffix == "cn" || suffix == "local" || suffix == “dev” || suffix == "test") {
		return true;
	} 
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