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

[client] Set User-Agent in non-browser environments #161

Merged
merged 1 commit into from
Sep 8, 2017

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Sep 8, 2017

We're not allowed to override the user agent in browsers, but in Node, we want to include a user agent to help track down potential issues and get a general feel of client usage.

@rexxars rexxars requested a review from bjoerge September 8, 2017 13:40
@bjoerge
Copy link
Member

bjoerge commented Sep 8, 2017

Oh, thats super useful. Maybe we could use another header in the browser? X-Sanity-User-Agent or something like that?

@rexxars
Copy link
Member Author

rexxars commented Sep 8, 2017

I believe that would trigger preflight requests. Will have a think on it.

@rexxars rexxars merged commit 405eca4 into next Sep 8, 2017
@rexxars rexxars deleted the client-user-agent branch September 8, 2017 13:45
@bjoerge
Copy link
Member

bjoerge commented Sep 8, 2017

Yea, think you're right about that.

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

Successfully merging this pull request may close these issues.

2 participants