2017-06-24 19:07:45 +00:00
|
|
|
package utils
|
|
|
|
|
|
|
|
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.
|
2017-07-13 23:50:10 +00:00
|
|
|
// ctx.SetResponseHeader("X-Frame-Options", "ALLOW-FROM chrome-extension://hjfcooigdelogjmniiahfiilcefdlpha/options.html")
|
2017-06-24 19:07:45 +00:00
|
|
|
return response
|
|
|
|
}
|