allow all origins on dev stage
This commit is contained in:
parent
07c8a5bf35
commit
f90cc4d8dd
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ func NewRouter(deps Deps) interfaces.Router {
|
|||
}
|
||||
|
||||
engine.Use(cors.New(cors.Config{
|
||||
AllowOrigins: []string{"http://localhost:5173"},
|
||||
AllowOrigins: []string{"*"},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
|
||||
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue