我在这里看到了其他类似的问题,但是由于我是第一次使用 GitLab 页面,所以我无法找到任何设置来进行更改。
我遇到的问题是 Firefox 上的错误:
The resource from “https://MYNAME.gitlab.io/_nuxt/08d802b84f0f5505a72c.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
在 Chrome 上:
The resource from “https://MYNAME.gitlab.io/_nuxt/08d802b84f0f5505a72c.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
由于 Nuxt 应用程序无法运行,这将返回一个空白页。
我读到了 Access-Control-Allow-Origin: * 但不知道如何在 GitLab 页面上进行设置。
谢谢你的帮助!