fix (iframe): cross domain iframe issue on safari

This commit is contained in:
MickaelK
2024-09-06 17:23:15 +10:00
parent 8dc89e58fc
commit 1cbda3519f
7 changed files with 19 additions and 3 deletions

View File

@ -100,7 +100,6 @@ func Build(a App) *mux.Router {
} else { // TODO: remove this after migration is done
r.PathPrefix(WithBase("/assets")).Handler(http.HandlerFunc(NewMiddlewareChain(ServeFile("/"), middlewares, a))).Methods("GET")
r.HandleFunc(WithBase("/favicon.ico"), NewMiddlewareChain(ServeFile("/assets/logo/"), middlewares, a)).Methods("GET")
r.HandleFunc(WithBase("/sw_cache.js"), NewMiddlewareChain(ServeFile("/assets/worker/"), middlewares, a)).Methods("GET")
}
// Other endpoints