mirror of
https://github.com/Tilo-K/ddragon-cdn.git
synced 2026-01-09 16:41:01 +00:00
sdas
This commit is contained in:
2
main.go
2
main.go
@@ -127,7 +127,7 @@ func loadCurrent() {
|
|||||||
|
|
||||||
func cors(fs http.Handler) http.HandlerFunc {
|
func cors(fs http.Handler) http.HandlerFunc {
|
||||||
return func(w http.ResponseWriter, r *http.Request) {
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
(*w).Header().Set("Access-Control-Allow-Origin", "*")
|
(w).Header().Set("Access-Control-Allow-Origin", "*")
|
||||||
|
|
||||||
fs.ServeHTTP(w, r)
|
fs.ServeHTTP(w, r)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user