Skip to content
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

Hide "X-Powered-By: Luracast Restler" in response headers #514

Open
linux019 opened this issue Jan 8, 2016 · 5 comments
Open

Hide "X-Powered-By: Luracast Restler" in response headers #514

linux019 opened this issue Jan 8, 2016 · 5 comments

Comments

@linux019
Copy link
Contributor

linux019 commented Jan 8, 2016

For security reasons is it possible to add option to remove this header?
This info disclosures internal server structure.

@tomahock
Copy link
Contributor

tomahock commented Jan 8, 2016

May i sugest if is in production mode hide, else show?

@linux019
Copy link
Contributor Author

linux019 commented Jan 8, 2016

Yes, this header doesn't needed on production servers

2016-01-08 13:39 GMT+02:00 João Pina [email protected]:

May i sugest if is in production mode hide, else show?


Reply to this email directly or view it on GitHub
#514 (comment).

@thedotedge
Copy link

Restler::addListener('onRespond', function () {
    header('X-Powered-By: google.com');
});

@roydekleijn
Copy link

I like to suggest to remove the X-Powered-By header by default.

tomahock pushed a commit to tomahock/Restler that referenced this issue Apr 19, 2016
@roynasser
Copy link

This makes sense as we never want to divulge too much info. Leaving on in dev can help diagnose versioning issues...

I have also added (and suggest it for others), adding a unique request ID which can be referenced in logs etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants