Kamran Sarwar
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
weed/s3api/s3err/error_handler.go
|
@ -79,6 +79,7 @@ func setCommonHeaders(w http.ResponseWriter, r *http.Request) { |
|
|
w.Header().Set("Accept-Ranges", "bytes") |
|
|
w.Header().Set("Accept-Ranges", "bytes") |
|
|
if r.Header.Get("Origin") != "" { |
|
|
if r.Header.Get("Origin") != "" { |
|
|
w.Header().Set("Access-Control-Allow-Origin", "*") |
|
|
w.Header().Set("Access-Control-Allow-Origin", "*") |
|
|
|
|
|
w.Header().Set("Access-Control-Expose-Headers", "*") |
|
|
w.Header().Set("Access-Control-Allow-Credentials", "true") |
|
|
w.Header().Set("Access-Control-Allow-Credentials", "true") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|