crow-security:Crow中间件,用于配置HTTP安全头

时间:2024-05-25 18:36:39
【文件属性】:

文件名称:crow-security:Crow中间件,用于配置HTTP安全头

文件大小:5KB

文件格式:ZIP

更新时间:2024-05-25 18:36:39

C++

乌鸦安全 的仅标头HTTP安全中间件。 #include "crow.h" #include "contrib/security/SecurityMiddleware.h int main() { crow::Crow app; using namespace crow::security_middleware; using Type = Sources::Type; // Configure HTTP security headers when adding middleware; they'll be returned with every response app.use(new SecurityMiddleware() .setXFrameOptions(XFrameOptions::DE


【文件预览】:
crow-security-master
----SecurityMiddleware.cpp(1KB)
----LICENSE(1KB)
----README.md(1KB)
----SecurityMiddleware.h(7KB)
----.gitignore(177B)

网友评论