Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Only set user-agent header in Node#87

Merged
vilyapilya merged 1 commit intologdna:masterfrom
mvasigh:bug/unsafe-header-user-agent
Dec 4, 2019
Merged

Only set user-agent header in Node#87
vilyapilya merged 1 commit intologdna:masterfrom
mvasigh:bug/unsafe-header-user-agent

Conversation

@mvasigh
Copy link
Copy Markdown
Contributor

@mvasigh mvasigh commented Dec 2, 2019

Fixes #86

This avoids setting the user-agent header altogether, which should be ok per spec but currently emits a logged error in Safari and Chrome (see issue) so the fix avoids setting the header altogether in the browser since that is a large chunk of the browser market share, thoughts on this?

@vilyapilya
Copy link
Copy Markdown
Contributor

Thank you @mvasigh for the fix!

@vilyapilya vilyapilya merged commit 5c79856 into logdna:master Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chrome & Safari: Refused to set unsafe header "user-agent"

3 participants