tecpresso/laravel-x-frame-options

Add X-Frame-Options Header for laravel

Maintainers

Package info

github.com/tecpresso/laravel-x-frame-options

Issues

pkg:composer/tecpresso/laravel-x-frame-options

Statistics

Installs: 5 812

Dependents: 0

Suggesters: 0

Stars: 3

1.0.1 2018-06-21 07:05 UTC

This package is auto-updated.

Last update: 2026-02-26 19:05:42 UTC


README

Build Status Latest Stable Version Total Downloads License

This library gives "X-Frame-Options" to Laravel.

I have created this to avoid OWASP warnings

Install

composer require tecpresso/laravel-x-frame-options

This library corresponds to auto discovery

If you using laravel 5.4. you have to add the provider in the providers array (config/app.php)

Configuration

Run command

php artisan vendor:publish

and select the Provider.

Then. generated config file in confog/x-frame-options .

You can edit rules for each path.

Usage

The library enabled automatically.

Testing

composer test

Lisence

MIT