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

Go to the source code of this file.

Classes

struct  orbit::middleware::SecurityHeadersOptions
 Options for security_headers(). An empty string leaves that header out. More...
 

Namespaces

namespace  orbit
 
namespace  orbit::middleware
 

Functions

routing::Middleware orbit::middleware::security_headers (SecurityHeadersOptions options={})
 Adds common security response headers (HSTS, nosniff, frame and referrer policies, COOP, optional CSP). They are defaults: a handler that sets the same header keeps its own value.