More fixes

This commit is contained in:
2017-07-14 01:50:10 +02:00
parent f2386ee9c7
commit 815f99ce9c
4 changed files with 5 additions and 15 deletions

View File

@ -5,6 +5,6 @@ import "github.com/aerogo/aero"
// AllowEmbed allows the page to be called by the browser extension.
func AllowEmbed(ctx *aero.Context, response string) string {
// This is a bit of a hack.
ctx.SetResponseHeader("X-Frame-Options", "ALLOW-FROM chrome-extension://hjfcooigdelogjmniiahfiilcefdlpha/options.html")
// ctx.SetResponseHeader("X-Frame-Options", "ALLOW-FROM chrome-extension://hjfcooigdelogjmniiahfiilcefdlpha/options.html")
return response
}