Comments (6)
Did you add Illuminate\Http\Middleware\FrameGuard.php
to your app/Http/Kernel.php
?
I couldn't find anywhere that laravel adds this middleware to middlewares.
from secure-headers.
No. I've searched all php files in the Laravel project for 'X-Frame-Options' with these results:
\config\secure-headers.php
- X-Frame-Options
- Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
'x-frame-options' => 'sameorigin',
\vendor\bepsvpt\secure-headers\config\secure-headers.php
- X-Frame-Options
- Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
'x-frame-options' => 'sameorigin',
\vendor\bepsvpt\secure-headers\src\SecureHeaders.php
'X-Frame-Options' => $this->config['x-frame-options'],
'X-Frame-Options' => $this->config['x-frame-options'],
\vendor\bepsvpt\secure-headers\tests\MiddlewareTest.php
$this->assertArrayHasKey('x-frame-options', $headers);
\vendor\bepsvpt\secure-headers\tests\SecureHeadersTest.php
$this->assertArrayHasKey('X-Frame-Options', $headers);
\vendor\laravel\framework\src\Illuminate\Http\Middleware\FrameGuard.php
$response->headers->set('X-Frame-Options', 'SAMEORIGIN', false);
FrameGuard is referenced in the following files only:
\vendor\composer\autoload_classmap.php
'Illuminate\Http\Middleware\FrameGuard' => $vendorDir . '/laravel/framework/src/Illuminate/Http/Middleware/FrameGuard.php',
'Illuminate\Http\Middleware\FrameGuard' => $vendorDir . '/laravel/framework/src/Illuminate/Http/Middleware/FrameGuard.php',
\vendor\composer\autoload_static.php
'Illuminate\Http\Middleware\FrameGuard' => DIR . '/..' . '/laravel/framework/src/Illuminate/Http/Middleware/FrameGuard.php',
'Illuminate\Http\Middleware\FrameGuard' => DIR . '/..' . '/laravel/framework/src/Illuminate/Http/Middleware/FrameGuard.php',
\vendor\laravel\framework\src\Illuminate\Http\Middleware\FrameGuard.php
class FrameGuard
The headers generated by Laravel are listed after those by secure-headers in the securityheaders.io report
from secure-headers.
Did you set these two headers in web server config file, like nginx or apache?
from secure-headers.
Why didn't I think of that!!!! A colleague set up the nginx server so a left hand right hand problem.
Thank you
from secure-headers.
FYI, if you want to disable these two headers, just set to null
or empty string.
from secure-headers.
If you have any further question, feel free to open a new issue or reply in this issue. 😄
from secure-headers.
Related Issues (20)
- Support for Reporting API and NEL header HOT 2
- X-Powered-By header name
- Rename Feature-Policy header to Permissions-Policy HOT 8
- Incorrect option header name HOT 1
- Error 500 in Laravel HOT 3
- After setup for laravel, Content-Security-Policy header is not generated HOT 6
- X-Powered-By keep showing when I leave it empty in config file HOT 4
- Support SharedArrayBuffer updates in Chrome around May 2021 HOT 1
- undefined index: x-content-type-options HOT 2
- Add CSP Report To HOT 2
- Add route whitelist HOT 1
- Laravel 9 Support HOT 4
- redirected to file's directory while validation Laravel HOT 1
- Unable to set multiple values to the frame-ancestors directive of the content-security-policy header HOT 2
- jquery.min.js HOT 1
- securityheaders.com still show Big red F HOT 6
- Eliminate Laravel dependency for non-Laravel users HOT 2
- Laravel Horizon not loading UI HOT 2
- How can I apply the following in the "Content-Security-Policy" ? HOT 6
- Some value does not appear on the HTTP request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secure-headers.