Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
Csrf.hpp File Reference
#include <orbit/legacy_namespaces.hpp>
#include <string>
#include <string_view>
#include <memory>
#include <orbit/http/HttpRequest.hpp>
#include <orbit/http/ResponseWriter.hpp>
#include <functional>
Include dependency graph for Csrf.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  orbit::middleware::Csrf
 Cross-Site Request Forgery (CSRF) protection middleware. More...
 

Namespaces

namespace  orbit
 
namespace  orbit::middleware
 

Functions

auto orbit::middleware::csrf_protection (const std::string &cookie_name="csrf_token", const std::string &header_name="X-CSRF-Token")
 Helper to create a CSRF protection middleware handler.