Skip to content

Commit

Permalink
add index.html Header
Browse files Browse the repository at this point in the history
  • Loading branch information
aichy126 committed Feb 23, 2023
1 parent 71a4cda commit 10dd9e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/router/ui.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 10dd9e2

Please sign in to comment.