mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 04:46:24 +02:00
golangci: enable additional checks
This commit is contained in:
parent
7e21abe7d1
commit
84ae42bcde
5 changed files with 7 additions and 6 deletions
|
|
@ -230,7 +230,7 @@ func (p *Proxy) serveImage(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
copyHeader(w.Header(), resp.Header, "Content-Length")
|
||||
|
||||
//Enable CORS for 3rd party applications
|
||||
// Enable CORS for 3rd party applications
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
|
||||
w.WriteHeader(resp.StatusCode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue