diff --git a/tinyphone/server.h b/tinyphone/server.h index 045a926..8f57231 100644 --- a/tinyphone/server.h +++ b/tinyphone/server.h @@ -69,6 +69,7 @@ struct TinyPhoneMiddleware res.add_header("Access-Control-Allow-Origin", "*"); res.add_header("Access-Control-Allow-Methods", "OPTIONS, GET, HEAD, POST, PUT, DELETE"); res.add_header("Access-Control-Request-Headers", "Content-Type"); + res.add_header("Access-Control-Allow-Headers", "Content-Type"); res.end(); } }