Merge pull request #6669 from hashicorp/b-cors-allow-credentials

Allow UI to query client directly for task logs/state
This commit is contained in:
Mahmood Ali 2019-11-20 15:14:01 -05:00 committed by GitHub
commit be6c60455e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -41,9 +41,10 @@ var (
// allowCORS sets permissive CORS headers for a handler
allowCORS = cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"HEAD", "GET"},
AllowedHeaders: []string{"*"},
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"HEAD", "GET"},
AllowedHeaders: []string{"*"},
AllowCredentials: true,
})
)