mirror of
https://github.com/balzack/databag.git
synced 2025-04-22 01:25:17 +00:00
adding delete to cors
This commit is contained in:
parent
7d2d99cc4f
commit
2301c233fe
@ -17,7 +17,7 @@ func main() {
|
||||
router := app.NewRouter()
|
||||
|
||||
origins := handlers.AllowedOrigins([]string{"*"})
|
||||
methods := handlers.AllowedMethods([]string{"GET", "HEAD", "POST", "PUT", "OPTIONS"})
|
||||
methods := handlers.AllowedMethods([]string{"GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS"})
|
||||
|
||||
log.Fatal(http.ListenAndServe(":7000", handlers.CORS(origins, methods)(router)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user