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

Feature request: Add X-BrowserSync-* headers to all HTTP responses #2089

Open
enspritz opened this issue Sep 29, 2024 · 0 comments
Open

Feature request: Add X-BrowserSync-* headers to all HTTP responses #2089

enspritz opened this issue Sep 29, 2024 · 0 comments

Comments

@enspritz
Copy link

Issue details

As in title. This will help to identify request/response flow in more complicated setups.
Use case here is multiple BrowserSync instances fronted by Envoy Proxy with non-trivial routing setup; these headers will help narrow down where trouble is originating.

Might be a matter of adding a default middleware whose handler adds the headers:

res.setHeader('X-BrowserSync-URL',     'http://localhost:8080'); // The value of the actual local access URL
res.setHeader('X-BrowserSync-Version', '3.0.3');

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 3.0.3 ]
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

1 participant