Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Commit

Permalink
Added github api in CSP header. Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Caiyeon committed Aug 19, 2017
1 parent 5eea268 commit 0b5dba3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "goldfish",
"version": "0.6.0-rc1",
"version": "0.7.0-rc1",
"description": "Vault Admin Panel",
"repository": "caiyeon/goldfish",
"homepage": "",
Expand Down
14 changes: 7 additions & 7 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"os"
"os/signal"
"syscall"
"strings"
"syscall"
"time"

"github.com/caiyeon/goldfish/config"
Expand Down Expand Up @@ -109,10 +109,10 @@ func main() {

// prevent caching by client (e.g. Safari)
e.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
c.Response().Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
return next(c)
}
return func(c echo.Context) error {
c.Response().Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
return next(c)
}
})

// unless explicitly disabled, some extra https configurations need to be set
Expand All @@ -122,7 +122,7 @@ func main() {
XSSProtection: "1; mode=block",
ContentTypeNosniff: "nosniff",
XFrameOptions: "SAMEORIGIN",
ContentSecurityPolicy: "default-src 'self'",
ContentSecurityPolicy: "default-src 'self' https://api.github.com",
}))

// if redirect is set, forward port 80 to port 443
Expand Down Expand Up @@ -220,7 +220,7 @@ func main() {
}
}

const versionString = "Goldfish version: v0.6.0-rc1"
const versionString = "Goldfish version: v0.7.0-rc1"

const devInitString = `
Expand Down

0 comments on commit 0b5dba3

Please sign in to comment.