Download the PHP package jcaillot/owasp-listener without Composer
On this page you can find all versions of the php package jcaillot/owasp-listener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jcaillot/owasp-listener
More information about jcaillot/owasp-listener
Files in jcaillot/owasp-listener
Download jcaillot/owasp-listener
More information about jcaillot/owasp-listener
Files in jcaillot/owasp-listener
Vendor jcaillot
Package owasp-listener
Short Description Symfony Response Event Listener for OWASP headers
License MIT
Package owasp-listener
Short Description Symfony Response Event Listener for OWASP headers
License MIT
Please rate this library. Is it a good library?
Informations about the package owasp-listener
jcaillot/owasp-listener
OWASP header Response EventListener for the Symfony framework
Symfony Response event listener, adds OWASP recommended HTTP headers
Prerequisites
Symfony >= 4
Installation
`composer require jcaillot/owasp-listener`
In config/services.yaml add the following:
Chaman\EventListener\OwaspHeaderListener:
tags:
- { name: kernel.event_listener, event: kernel.response, method: onKernelResponse }
arguments:
- {
#'Strict-Transport-Security': 'max-age=31536000 ; includeSubDomains',
'Content-Type': 'text/html; charset=utf-8',
'X-Content-Type-Option': 'nosniff',
'X-XSS-Protection': '1; mode=block',
'X-Frame-Options': 'DENY',
'X-Permitted-Cross-Domain-Policies': 'none',
'Referrer-Policy': 'same-origin',
'Content-Security-Policy': 'frame-ancestors ''none''',
'Feature-Policy': 'camera: ''none''; payment: ''none''; microphone: ''none'''
}
About OWASP recommender headers
More infos on OWASP recommended headers can be found on the OWASP Secure Headers Project Wiki:
License
All versions of owasp-listener with dependencies
PHP Build Version
Package Version
The package jcaillot/owasp-listener contains the following files
Loading the files please wait ....