mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-31 23:40:50 +02:00
set AllowCredentials to true.
This commit is contained in:
parent
8f9ad2cd9b
commit
c6a183f766
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ func New(WebSocketManager types.WebSocketManager, ApiManager types.ApiManager, c
|
||||||
AllowedMethods: []string{"GET", "POST", "DELETE", "OPTIONS"},
|
AllowedMethods: []string{"GET", "POST", "DELETE", "OPTIONS"},
|
||||||
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
|
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
|
||||||
ExposedHeaders: []string{"Link"},
|
ExposedHeaders: []string{"Link"},
|
||||||
AllowCredentials: false,
|
AllowCredentials: true,
|
||||||
MaxAge: 300, // Maximum value not ignored by any of major browsers
|
MaxAge: 300, // Maximum value not ignored by any of major browsers
|
||||||
}))
|
}))
|
||||||
router.Use(middleware.RequestID) // Create a request ID for each request
|
router.Use(middleware.RequestID) // Create a request ID for each request
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue