Cloudflare通过用rocketscript替换javascript来破坏我的recaptcha

时间:2018-04-11 04:27:59

标签: javascript html recaptcha cloudflare

我通过cloudflare运行我的网站,并启用了Rocket Loader。火箭加载器似乎用“rocketscript”取代了javascript。这有时会破坏我的recaptcha v2加载,并在chrome控制台中出现以下错误:

et_username_or_Email.setCompoundDrawablesWithIntrinsicBounds(R.drawable.layer_list_ic_user, 0, 0, 0);

当我查看源代码时,它有以下“rocketscript”

Refused to apply style from 'https://www.gstatic.com/recaptcha/api2//styles__ltr.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
GET https://www.gstatic.com/recaptcha/api2//recaptcha__en.js net::ERR_ABORTED
Refused to execute script from 'https://www.gstatic.com/recaptcha/api2//recaptcha__en.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Uncaught ReferenceError: recaptcha is not defined
Refused to apply style from 'https://www.gstatic.com/recaptcha/api2//styles__ltr.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
GET https://www.gstatic.com/recaptcha/api2//recaptcha__en.js net::ERR_ABORTED
Refused to execute script from 'https://www.gstatic.com/recaptcha/api2//recaptcha__en.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Uncaught ReferenceError: recaptcha is not defined

为什么火箭加载器有时会破坏我的javascript?

0 个答案:

没有答案