thecodingmachine/csrf-header-check-middleware-universal-module

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Cross-framework module for thecodingmachine/csrf-header-check-middleware

v1.1.0 2018-02-27 16:46 UTC

This package is auto-updated.

Last update: 2021-10-06 17:31:08 UTC


README

Latest Stable Version Latest Unstable Version License

TheCodingMachine's CSRF header checker middleware universal module

This package integrates the TheCodingMachine's CSRF header checker middleware in any container-interop compatible framework/container.

Installation

composer require thecodingmachine/csrf-header-check-middleware-universal-module

Once installed, you need to register the TheCodingMachine\Middlewares\CsrfHeaderCheckMiddlewareServiceProvider into your container.

If your container supports thecodingmachine/discovery integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register service providers.

Introduction

This middleware checks HTTP header to prevent CSRF attacks. This service provider adds the middleware at the beginning of the stack.

Provided services

This service provider provides the following services:

Service name Description
TheCodingMachine\Middlewares\CsrfHeaderCheckMiddlewareServiceProvider The CSRF checker middleware

Extended services

This service provider extends those services:

Name Compulsory Description
MiddlewareListServiceProvider::MIDDLEWARES_QUEUE no This service providers inserts the CSRF middleware in the middleware queue.