mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-02-14 15:38:42 -06:00
[server] Allow X-Device header in CORS requests
This commit is contained in:
@@ -29,7 +29,7 @@ func createEngine(logger *zerolog.Logger) *gin.Engine {
|
||||
logger.Info().Strs("origins", origins).Msg("Enabling CORS")
|
||||
engine.Use(cors.New(cors.Config{
|
||||
AllowOrigins: origins,
|
||||
AllowHeaders: []string{"Origin", "Authorization", "Accept", "Accept-Language", "Content-Type"},
|
||||
AllowHeaders: []string{"Origin", "Authorization", "Accept", "Accept-Language", "Content-Type", "X-Device"},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "PROPFIND", "PROPPATCH", "COPY", "MOVE"},
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
AllowWebSockets: true,
|
||||
|
||||
Reference in New Issue
Block a user