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

请问这个可以不跳转https吗? CF的workers.dev被SNI阻断了, 目前只有HTTP可用 #19

Open
Tmalll opened this issue Jul 21, 2023 · 2 comments

Comments

@Tmalll
Copy link

Tmalll commented Jul 21, 2023

请问这个可以不跳转https吗? CF的workers.dev被SNI阻断了, 目前只有HTTP可用

@czwstc
Copy link

czwstc commented Jul 21, 2023

请使用自己的域名。

@Tmalll
Copy link
Author

Tmalll commented Jul 23, 2023

请使用自己的域名。

还是希望能支持下http模式, 这样适用面广一些哈,
能否指导一下?
我尝试把这段给注销掉, 然后用http访问页面, 提示 >>本程序需要 HTTPS 站点<<

if (urlObj.protocol === 'http:') {
urlObj.protocol = 'https:'
return makeRes('', 301, {
'strict-transport-security': 'max-age=99999999; includeSubDomains; preload',
'location': urlObj.href,
})
}

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