Skip to content

Commit

Permalink
CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Isla committed Apr 18, 2015
1 parent dbac2f8 commit b6b3e33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imageproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
copyHeader(w, resp, "Expires")
copyHeader(w, resp, "Etag")

w.Header().Set("Access-Control-Allow-Origin", "*")

if is304 := check304(r, resp); is304 {
w.WriteHeader(http.StatusNotModified)
return
Expand Down

0 comments on commit b6b3e33

Please sign in to comment.