Skip to content

Commit

Permalink
Add common security, xss protection headers (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples authored Jan 4, 2022
1 parent f3c6778 commit 98af513
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func NewServer(opts ...server_options.ServerOption) *Server {
// Middleware
e.Use(middleware.Logger())
e.Use(middleware.Recover())
e.Use(middleware.Secure())
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: serverOpts.Config.CORS.AllowOrigins,
AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept},
Expand Down

0 comments on commit 98af513

Please sign in to comment.