feat: CORS X-XSRF-TOKEN
This commit is contained in:
parent
3be58457aa
commit
2f4f8164df
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ func main() {
|
|||
// AllowOrigins: []string{AppConfig.ServiceAddress},
|
||||
AllowOrigins: []string{"*"},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH"},
|
||||
AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
|
||||
AllowHeaders: []string{"Origin", "Content-Type", "Accept", "X-XSRF-TOKEN"},
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
AllowCredentials: true,
|
||||
MaxAge: 12 * time.Hour,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue