add index.html Header

This commit is contained in:
aichy126 2023-02-23 17:56:09 +08:00
parent 71a4cdac81
commit 10dd9e23f4
1 changed files with 1 additions and 0 deletions

View File

@ -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 {