question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow removing Server Header in the response headers

See original GitHub issue

Is your feature request related to a problem? Please describe. Thank you for building such a great graphql server!

In this file https://github.com/dotansimha/graphql-yoga/blob/b377635c3a8bf3da0c5e6537e7295d8d19c28271/packages/common/src/plugins/useCORS.ts#L35

Sending Server header

    const headers = {
        Server: 'GraphQL Yoga',
    };

It would be great if there is away to disable it.

Describe the solution you’d like

In configuration { disablePowerdByHeader } or maybe similar to express app.disable('x-powered-by')

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
ardatancommented, Jun 14, 2022

resolved in https://github.com/dotansimha/graphql-yoga/pull/1286 and released in https://github.com/dotansimha/graphql-yoga/pull/1287 Latest version no longer has that header 😃

4reactions
dotansimhacommented, Jun 12, 2022

@n1ru4l @ardatan I think we can safely remove the default header.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove Unwanted HTTP Response Headers
Click on the X-Powered-By header and then click Remove on the Actions Pane to remove it from the response. thumbnail image 8 of...
Read more >
Remove Server Response Header IIS7 - Stack Overflow
This one has to be removed through the IIS Manager, Editor configuration on the IIS root (not on a site): go to system.webServer/proxy...
Read more >
Remove/Modify IIS 10 Server Header which discloses IIS ...
4 Answers 4 · Open "Internet Information Services (IIS) Manager". · If you want to set the settings globally, click on your main...
Read more >
How To Remove Server Name From Apache Response Header
How To Remove Server Name From Apache Response Header · 1. Open Apache Config File · 2. Turn Off Server Signature · 3....
Read more >
Remove IIS Server version HTTP Response Header
How to remove HTTP response headers in Windows Server IIS and ASP.NET using web.config files. Stop giving hackers too much information, :-)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found