Files
auth_service_c/src/cors.c
T
wt 6c556624bd
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
updated format
2025-09-02 14:39:23 +07:00

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",
"");
}