Dropbox:MIME 类型 ('text/html') 不可执行,已启用严格 MIME 类型 > 检查
Dropbox: MIME type ('text/html') is not executable, and strict MIME type > checking is enabled
我的问题是 here 的一半延续。
在我的页面中我有:
<script type='text/javascript' src='https://www.dropbox.com/....'>
并尝试了这两个得到相同的错误消息
<script src='https://www.dropbox.com/.....'>
错误:
Refused to execute script from
'https://www.dropbox.com/...' because
its MIME type ('text/html') is not executable, and strict MIME type
checking is enabled.
Dropbox 采取了多项措施来抵制此类盗链。 Dropbox 不是托管站点。您应该找到另一种方法;例如一个免费的网站空间,或者一个小的付费网站空间,或者 Github(允许 Github 页面)。而且我相信还有很多其他选择。
只是猜测,因为您没有告诉我们您使用的是哪种 link,但也许您使用的是 "share link" (www.dropbox.com/s/...).
当您获得分享 link 时,link 指向显示内容的网页。要获取原始内容,请使用 ?raw=1
。参见 https://www.dropbox.com/help/201。
请注意,这种 link 需要在浏览器中进行重定向,这会减慢您的页面加载速度。在 Dropbox 上分享 links 也有带宽限制。正如 Limnic 所建议的,您可能希望使用某种托管服务。
我的问题是 here 的一半延续。
在我的页面中我有:
<script type='text/javascript' src='https://www.dropbox.com/....'>
并尝试了这两个得到相同的错误消息
<script src='https://www.dropbox.com/.....'>
错误:
Refused to execute script from 'https://www.dropbox.com/...' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Dropbox 采取了多项措施来抵制此类盗链。 Dropbox 不是托管站点。您应该找到另一种方法;例如一个免费的网站空间,或者一个小的付费网站空间,或者 Github(允许 Github 页面)。而且我相信还有很多其他选择。
只是猜测,因为您没有告诉我们您使用的是哪种 link,但也许您使用的是 "share link" (www.dropbox.com/s/...).
当您获得分享 link 时,link 指向显示内容的网页。要获取原始内容,请使用 ?raw=1
。参见 https://www.dropbox.com/help/201。
请注意,这种 link 需要在浏览器中进行重定向,这会减慢您的页面加载速度。在 Dropbox 上分享 links 也有带宽限制。正如 Limnic 所建议的,您可能希望使用某种托管服务。