#include "cors.h" void set_cors_headers(struct mg_connection *c, struct mg_http_message *hm) { mg_http_reply( c, 200, "Access-Control-Allow-Origin: *\r\nAccess-Control-Allow-Methods: " "GET,POST,OPTIONS,PUT,DELETE\r\nAccess-Control-Allow-Headers: " "Authorization,X-Custom,Content-Type", ""); }