mirror of https://gitee.com/answerdev/answer.git
add index.html Header
This commit is contained in:
parent
71a4cdac81
commit
10dd9e23f4
|
@ -106,6 +106,7 @@ func (a *UIRouter) Register(r *gin.Engine) {
|
|||
default:
|
||||
filePath = UIIndexFilePath
|
||||
c.Header("content-type", "text/html;charset=utf-8")
|
||||
c.Header("X-Frame-Options", "DENY")
|
||||
}
|
||||
file, err := ui.Build.ReadFile(filePath)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue