mirror of
https://github.com/tavo-wasd-gh/conex-builder.git
synced 2025-06-07 04:03:29 -06:00
missing cors
This commit is contained in:
parent
0ea5fbdaef
commit
0d40858bf9
1 changed files with 1 additions and 1 deletions
|
@ -464,5 +464,5 @@ func FetchSiteHandler(db *sql.DB) http.HandlerFunc {
|
|||
func enableCORS(w http.ResponseWriter) {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
|
||||
w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization")
|
||||
w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue