roar
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
cors.hpp File Reference
#include <boost/beast/http/field.hpp>
#include <boost/beast/http/verb.hpp>
#include <string>
#include <vector>
#include <cctype>
#include <optional>
Include dependency graph for cors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Roar::CorsSettings
 Settings object to control CORS requests. More...
 

Namespaces

namespace  Roar
 

Functions

CorsSettings Roar::makePermissiveCorsSettings (std::string method)
 Reflects all requested headers and origin or sets the Kleene star. Is as permissive as possible. Least secure option.
 
CorsSettings Roar::makePermissiveCorsSettings (boost::beast::http::verb method)
 Same as the makePermissiveCorsSettings(std::string method) overload.