GoCMS icon indicating copy to clipboard operation
GoCMS copied to clipboard

HeaderFilter 引发的错误

Open agaolong opened this issue 10 years ago • 0 comments

我不相信,只有我才碰到这样的问题,难道大家只是看看而已吗?

HeaderFilter 里有这2句代码: c.Response.Out.Header().Add("X-Content-Type-Options", "nosniff") c.Response.Out.Header().Add("Content-Type", "text/html; charset=utf-8")

加上这句话,难道不会引起浏览器对js等文件MIME 检测吗?

agaolong avatar Nov 11 '14 06:11 agaolong