Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
11 lines
328 B
C
11 lines
328 B
C
#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",
|
|
"");
|
|
}
|