-
Notifications
You must be signed in to change notification settings - Fork 161
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
不转发到 nohost的请求,不需要注入none.html #154
Comments
为什么注入这个会报错? |
有些三方的文件会对script进行检验,就导致出问题,所以就想能不能加一个配置来过滤 |
在管理后台的 Whistle 里面配置 |
nohost version: 1.5.4 加上whistle.nohost://none之后,还是会添加脚本到html。还有其它的配置可以使用么,?可以不添加任何内容到html里。 目前添加的内容如下: < !DOCTYPE html > <script> window.__whistle_nohost_from_imweb_is_inited__ = true; </script> |
通过修改响应头的content-type为非text/html,临时规避了这个问题。不知道是不是有其他更优雅的解决办法,期待回复中... 临时解决方案如下: 备注: |
|
遇到了同样的问题,注入none.html后前端校验body过不去,有什么方法吗 |
入口规则配 |
不行,-domain只是不会注入whistle.nohost/inject.html,仍然会注入whistle.nohost/none.html
|
哪来的 |
-domain域名的响应body开头会添加 搜nohost代码发现是在 https://github.com/Tencent/nohost/blob/master/lib/plugins/whistle.nohost/_rules.txt 里 |
这个是控制客户端插件注入的小圆点不要显示,注入也没问题不影响功能。 |
某些资源注入script会导致出错,
The text was updated successfully, but these errors were encountered: