mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
Add Access-Control-Allow-Origin: * header to postinstall wrapper
This commit is contained in:
parent
1515c353f8
commit
9d4b829fb6
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ func postInstall(handler func(http.ResponseWriter, *http.Request)) func(http.Res
|
|||
http.Redirect(w, r, newURL.String(), http.StatusTemporaryRedirect)
|
||||
return
|
||||
}
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
handler(w, r)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue