Skip to content

Commit

Permalink
Set access-control-allow-origin to any
Browse files Browse the repository at this point in the history
  • Loading branch information
moondrek committed Dec 3, 2021
1 parent 9ad36fe commit 444205e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/mock_api/mock_server/server.go
Expand Up @@ -101,6 +101,7 @@ func loggerMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
log.Printf("%v %v", r.Method, r.URL.Path)
w.Header().Set("Content-Type", "application/json")
w.Header().Set("access-control-allow-origin", "*")

next.ServeHTTP(w, r)
})
Expand Down

0 comments on commit 444205e

Please sign in to comment.