-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-Powered-By keep showing when I leave it empty in config file #58
Comments
not sure about your setup and i'm not a lara user but u might check https://www.php.net/manual/en/ini.core.php#ini.expose-php |
I have the same issue. Have you found a workaround @hyquoccuong ? composer.json (versions): {
"bepsvpt/secure-headers": "v6.3.0",
"laravel/lumen-framework": "v5.8.13",
} config/secure-headers.php /*
* X-Powered-By
*
* Note: it will not add to response header if the value is empty string.
*/
'x-powered-by' => '', |
Nvm, thanks @tobias-trozowski. In my case it was the
php -i | grep expose
# expose_php => On => On
|
Close due to inactive. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Laravel config/secure-headers.php
But in header it shows
X-Powered-By: PHP/7.2.28
If I change the value:
Header shows:
X-Powered-By: PHP/7.2.28
X-Powered-By: Laraspace
And if I change the config to
Now it shows:
X-Powered-By: PHP/7.2.28
X-Powered-By
I just want to hide/remove it completely or just show one line with set value in config file, could you please let me know how to do that?
The text was updated successfully, but these errors were encountered: