KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Fields
KlCorsConfig Struct Reference

#include <cors.h>

Data Fields

char allowed_origins [KL_CORS_MAX_ORIGINS][KL_CORS_ORIGIN_SIZE]
 
int origin_count
 
const char * allowed_methods
 
const char * allowed_headers
 
int allow_credentials
 
int max_age_seconds
 

Field Documentation

◆ allowed_origins

char KlCorsConfig::allowed_origins[KL_CORS_MAX_ORIGINS][KL_CORS_ORIGIN_SIZE]

◆ origin_count

int KlCorsConfig::origin_count

0 = allow all (*)

◆ allowed_methods

const char* KlCorsConfig::allowed_methods

default: "GET, POST, OPTIONS"

◆ allowed_headers

const char* KlCorsConfig::allowed_headers

default: "Content-Type, Authorization"

◆ allow_credentials

int KlCorsConfig::allow_credentials

1 = include credentials header

◆ max_age_seconds

int KlCorsConfig::max_age_seconds

preflight cache time (default: 86400)


The documentation for this struct was generated from the following file: