mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
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:
@@ -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,
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user