Allow rendering iframe from localhost and staging

Have not tested but this is my guess for how to do it.
This commit is contained in:
dan
2024-07-02 18:55:42 +01:00
committed by GitHub
parent 0012c6d40f
commit 14d3ed81f5
+4 -4
View File
@@ -109,11 +109,11 @@ func serve(cctx *cli.Context) error {
// SECURITY: Do not modify without due consideration.
e.Use(middleware.SecureWithConfig(middleware.SecureConfig{
ContentTypeNosniff: "nosniff",
XFrameOptions: "SAMEORIGIN",
HSTSMaxAge: 31536000, // 365 days
ContentTypeNosniff: "nosniff",
XFrameOptions: "SAMEORIGIN",
ContentSecurityPolicy: "frame-ancestors 'self' http://localhost:19006 https://*.bsky.dev",
HSTSMaxAge: 31536000, // 365 days
// TODO:
// ContentSecurityPolicy
// XSSProtection
}))
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{