Uhh, I think I did the pattern wrong. I guess someone did get CORS.
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
This commit is contained in:
parent
343a0b0eb7
commit
8a994bb127
|
@ -355,7 +355,7 @@ func Main(information library.ServiceInitializationInformation) *chi.Mux {
|
|||
}
|
||||
|
||||
router.Use(disableCors)
|
||||
router.Options("*", func(w http.ResponseWriter, r *http.Request) {
|
||||
router.Options("/*", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
w.Header().Set("Access-Control-Allow-Headers", "*")
|
||||
w.Header().Set("Access-Control-Allow-Methods", "*")
|
||||
|
|
Loading…
Reference in New Issue