Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
Csrf.hpp File Reference
#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  middleware::Csrf
 Cross-Site Request Forgery (CSRF) protection middleware. More...
 

Namespaces

namespace  middleware
 

Functions

auto 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.