Security

Security

CodefyPHP provides tools to secure your application. The following section covers the tools you can use.

CSRF Protection

Codefy provides built in support for CSRF (Cross-Site Request Forgery). Since version 1.0.6, when you use the starter app, CSRF protection is enabled by default.

Written by Joshua
August 14, 2024

Content Security Policy

A Content Security Policy (CSP) is an added layer of security that can be added to your application to detect and mitigate certain types of...

Written by Joshua
August 14, 2024

Security Headers

When using the ContentSecurityPolicyMiddleware, it will output a Content-Security-Policy header as well as other security related headers.

Written by Joshua
August 14, 2024