{"id":72390,"library":"gin-contrib-secure","title":"Gin Secure Middleware","description":"A Gin middleware for setting secure HTTP headers.","status":"active","version":"1.1.3","language":"go","source_language":null,"source_url":"https://github.com/gin-contrib/secure","tags":["gin","middleware","security","http"],"install":[{"cmd":"go get github.com/gin-contrib/secure","lang":"bash","label":"Install github.com/gin-contrib/secure"}],"dependencies":[],"imports":[{"symbol":"secure","correct":"github.com/gin-contrib/secure"}],"quickstart":{"code":"package main\n\nimport (\n\t\"github.com/gin-contrib/secure\"\n\t\"github.com/gin-gonic/gin\"\n)\n\nfunc main() {\n\tr := gin.Default()\n\tr.Use(secure.New(secure.Config{\n\t\tAllowedHosts: []string{\"example.com\"},\n\t}))\n\tr.GET(\"/\", func(c *gin.Context) {\n\t\tc.String(200, \"Secure!\")\n\t})\n\tr.Run()\n}","lang":"go","description":"Adds secure headers to a Gin router."},"warnings":[],"env_vars":null,"search_vec":"'gin':1,5,12 'header':11 'http':10,15 'middlewar':3,6,13 'secur':2,9,14 'set':8","created_at":"2026-06-17T18:38:24.516182+00:00","updated_at":"2026-06-17T18:38:24.516182+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gin-contrib/secure","github":"https://github.com/gin-contrib/secure","docs":"https://pkg.go.dev/github.com/gin-contrib/secure#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}