# Onebox requests being incorrectly redirected due to user-agent

**URL:** https://meta.discourse.org/t/onebox-requests-being-incorrectly-redirected-due-to-user-agent/120557
**Category:** Support
**Created:** [6월 17, 2019, 7:07오전 UTC](https://meta.discourse.org/t/onebox-requests-being-incorrectly-redirected-due-to-user-agent/120557 "2019-06-17T07:07:06Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [6월 17, 2019, 11:00오전 UTC](https://meta.discourse.org/t/onebox-requests-being-incorrectly-redirected-due-to-user-agent/120557/17 "2019-06-17T11:00:06Z")

</div>

User agent is found here:

> [@Onebox Does Not Display - iFramely Passes](https://meta.discourse.org/t/onebox-does-not-display-iframely-passes/116694/4):
>
> Yes, I can reproduce that from a VPS using curl -A "-string-"! Can we have a setting to change the user agent? wink In this case that would be a lot less hassle slight_smile Oh wait, I see a file: discourse/config/initializers/100-onebox\_options.rb require\_dependency 'twitter\_api' Onebox.options = { twitter\_client: TwitterApi, redirect\_limit: 3, user\_agent: "Discourse Forum Onebox v#{Discourse::VERSION::STRING}" } Take the word forum out? I could easily add this to my plugin o…

---

_[View the full topic](https://meta.discourse.org/t/onebox-requests-being-incorrectly-redirected-due-to-user-agent/120557)._
