3#include <boost/beast/http/field.hpp>
4#include <boost/beast/http/verb.hpp>
19 std::function<std::string(std::string
const&)>
allowedOrigin{[](std::string
const& origin) {
21 return origin.empty() ? std::string(
"*") : origin;
26 [](std::vector<std::string>
const& requestedMethods) {
27 return requestedMethods;
32 [](std::vector<std::string>
const& requestedHeaders) {
33 return requestedHeaders;
56 std::transform(begin(method), end(method), begin(method), [](
auto character) {
57 return std::toupper(character);
60 [method = std::move(method)](std::vector<std::string>
const&) -> std::vector<std::string> {
61 return std::vector<std::string>{method};
Definition authorization.hpp:10
CorsSettings makePermissiveCorsSettings(std::string method)
Reflects all requested headers and origin or sets the Kleene star. Is as permissive as possible....
Definition cors.hpp:53