Skip to content

Commit

Permalink
Add self to connect sources
Browse files Browse the repository at this point in the history
  • Loading branch information
thechubbypanda authored Jul 3, 2024
1 parent 1b7d8b8 commit 7899c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {

cspParts := []string{"default-src 'self'", "style-src 'self' 'unsafe-inline'"}
scriptSources := []string{"unpkg.com"}
var connectSources []string
var connectSources := []string{"self"}
if cfg.Plausible.ScriptUrl != "" {
scriptSources = append(scriptSources, cfg.Plausible.Origin)
connectSources = append(connectSources, cfg.Plausible.Origin)
Expand Down

0 comments on commit 7899c17

Please sign in to comment.