cli: add hasura-collaborator-token and hasura-client-name to allowed headers (#4414)

This commit is contained in:
Aravind 2020-04-15 19:08:31 +05:30 committed by GitHub
parent dc31b835e1
commit f073243283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,8 @@ func allowCors() gin.HandlerFunc {
config.AddAllowHeaders("X-Hasura-User-Id")
config.AddAllowHeaders(XHasuraAccessKey)
config.AddAllowHeaders(XHasuraAdminSecret)
config.AddAllowHeaders("hasura-client-name")
config.AddAllowHeaders("hasura-collaborator-token")
config.AddAllowHeaders("X-Hasura-Role")
config.AddAllowHeaders("X-Hasura-Allowed-Roles")
config.AddAllowMethods("DELETE")