Public Attributes | |
| std::vector< std::string > | allowed_origins |
| Allowed origins. Use "*" to allow all origins (not recommended for production). | |
| std::vector< std::string > | allowed_methods |
| Allowed HTTP methods. | |
| std::vector< std::string > | allowed_headers |
| Allowed headers. | |
| std::vector< std::string > | exposed_headers |
| Headers that can be exposed to the browser. | |
| bool | allow_credentials {false} |
| Whether to allow credentials (cookies, authorization headers). | |
| std::chrono::seconds | max_age {std::chrono::hours(24)} |
| Maximum age for preflight cache. | |
| bool server::middlewares::Cors::Config::allow_credentials {false} |
| std::vector<std::string> server::middlewares::Cors::Config::allowed_headers |
| std::vector<std::string> server::middlewares::Cors::Config::allowed_methods |
Allowed HTTP methods.
| std::vector<std::string> server::middlewares::Cors::Config::allowed_origins |
| std::vector<std::string> server::middlewares::Cors::Config::exposed_headers |
| std::chrono::seconds server::middlewares::Cors::Config::max_age {std::chrono::hours(24)} |