Skip to content

Commit 37fcc11

Browse files
fix: Fix /inject-portal-config.js content type (#624)
1 parent de0c544 commit 37fcc11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/portal/embed.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func AddRoutes(router *gin.Engine, config PortalConfig) {
3636
c.Header("Cache-Control", "no-cache, no-store, must-revalidate")
3737
c.Header("Pragma", "no-cache")
3838
c.Header("Expires", "0")
39+
c.Header("Content-Type", "application/javascript")
3940
c.String(http.StatusOK, "window.PORTAL_CONFIGS = "+createJSONFromConfigs(config.Configs)+";")
4041
})
4142

0 commit comments

Comments
 (0)