Fixed extension login

This commit is contained in:
2019-11-18 11:55:00 +09:00
parent 93af640d53
commit 2af0fe9e0c
4 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"net/http"
"strings"
"github.com/aerogo/aero"
@ -27,6 +28,7 @@ func configure(app *aero.Application) *aero.Application {
// Sessions
app.Sessions.Duration = 3600 * 24 * 30 * 6
app.Sessions.Store = nanostore.New(arn.DB.Collection("Session"))
app.Sessions.SameSite = http.SameSiteNoneMode
// Content security policy
app.ContentSecurityPolicy.Set("img-src", "https: data:")