CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 6.0 API

  • Project:
    • CakePHP
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 6.0
      • 6.0
      • 5.4
      • 5.3
      • 5.2
      • 5.1
      • 5.0
      • 4.6
      • 4.5
      • 4.4
      • 4.3
      • 4.2
      • 4.1
      • 4.0
      • 3.10
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Global
  • Cake
    • AttributeResolver
    • Cache
    • Collection
    • Command
    • Console
    • Container
    • Controller
    • Core
    • Database
    • Datasource
    • Error
    • Event
    • Form
    • Http
    • I18n
    • Lock
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • TestSuite
    • Utility
    • Validation
    • View

Namespace Middleware

Classes

  • BodyParserMiddleware

    Parse encoded request body data.

    Enables JSON and XML request payloads to be parsed into the request's body. You can also add your own request body parsers using the addParser() method.

  • ClosureDecoratorMiddleware

    Decorate closures as PSR-15 middleware.

    Decorates closures with the following signature:

    function (
        ServerRequestInterface $request,
        RequestHandlerInterface $handler
    ): ResponseInterface

    such that it will operate as PSR-15 middleware.

  • CspMiddleware

    Content Security Policy Middleware

    Options

    • scriptNonce Enable to have a nonce policy added to the script-src directive.
    • styleNonce Enable to have a nonce policy added to the style-src directive.
  • CsrfProtectionMiddleware

    Provides CSRF protection & validation.

    This middleware adds a CSRF token to a cookie. The cookie value is compared to token in request data, or the X-CSRF-Token header on each PATCH, POST, PUT, or DELETE request. This is known as "double submit cookie" technique.

    If the request data is missing or does not match the cookie data, an InvalidCsrfTokenException will be raised.

    This middleware integrates with the FormHelper automatically and when used together your forms will have CSRF tokens automatically added when $this->Form->create(...) is used in a view.

  • EncryptedCookieMiddleware

    Middleware for encrypting & decrypting cookies.

    This middleware layer will encrypt/decrypt the named cookies with the given key and cipher type. To support multiple keys/cipher types use this middleware multiple times.

    Cookies in request data will be decrypted, while cookies in response headers will be encrypted automatically. If the response is a {@link \Cake\Http\Response}, the cookie data set with withCookie() and cookie() will also be encrypted.

    The encryption types and padding are compatible with those used by CookieComponent for backwards compatibility.

  • HttpsEnforcerMiddleware

    Enforces use of HTTPS (SSL) for requests.

  • RateLimitMiddleware

    Rate limiting middleware

    Provides configurable rate limiting based on various identifiers. Supports multiple strategies including sliding window, token bucket, and fixed window.

  • SecurityHeadersMiddleware

    Handles common security headers in a convenient way

  • SessionCsrfProtectionMiddleware

    Provides CSRF protection via session based tokens.

    This middleware adds a CSRF token to the session. Each request must contain a token in request data, or the X-CSRF-Token header on each PATCH, POST, PUT, or DELETE request. This follows a 'synchronizer token' pattern.

    If the request data is missing or does not match the session data, an InvalidCsrfTokenException will be raised.

    This middleware integrates with the FormHelper automatically and when used together your forms will have CSRF tokens automatically added when $this->Form->create(...) is used in a view.

    If you use this middleware do not also use CsrfProtectionMiddleware.

OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs