We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0c544 commit 37fcc11Copy full SHA for 37fcc11
1 file changed
internal/portal/embed.go
@@ -36,6 +36,7 @@ func AddRoutes(router *gin.Engine, config PortalConfig) {
36
c.Header("Cache-Control", "no-cache, no-store, must-revalidate")
37
c.Header("Pragma", "no-cache")
38
c.Header("Expires", "0")
39
+ c.Header("Content-Type", "application/javascript")
40
c.String(http.StatusOK, "window.PORTAL_CONFIGS = "+createJSONFromConfigs(config.Configs)+";")
41
})
42
0 commit comments