# Can't onebox Overwatch Forums topic

**URL:** <https://meta.discourse.org/t/cant-onebox-overwatch-forums-topic/67066>\
**Category:** Product Support\
**Created:** [26 Luglio 2017, 9:38pm UTC](https://meta.discourse.org/t/cant-onebox-overwatch-forums-topic/67066 "2017-07-26T21:38:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [4 Agosto 2017, 2:09pm UTC](https://meta.discourse.org/t/cant-onebox-overwatch-forums-topic/67066/3 "2017-08-04T14:09:31Z")

</div>

I looked into this issue and this is because Overwatch Forum is returning different headers when making HEAD request (instead of GET).

```
➜ ~ curl -I https://us.battle.net/forums/en/overwatch/topic/20758326009                    
HTTP/1.1 302 Found
Date: Fri, 04 Aug 2017 13:57:32 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Retry-After: 600
Set-Cookie: login.cookies=1; Domain=battle.net; Path=/
Location: https://us.battle.net/forums/
Content-Language: en-US

➜ ~ curl -I https://us.battle.net/forums/
HTTP/1.1 302 Found
Date: Fri, 04 Aug 2017 13:57:47 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Retry-After: 600
Set-Cookie: login.cookies=1; Domain=battle.net; Path=/
Location: https://us.battle.net/forums/en/

➜ ~ curl -I https://us.battle.net/forums/en/                           
HTTP/1.1 200 OK
Date: Fri, 04 Aug 2017 13:58:08 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Retry-After: 600
Set-Cookie: login.cookies=1; Domain=battle.net; Path=/
Content-Language: en-US
Content-Length: 100225
Content-Type: application/xhtml+xml;charset=UTF-8

```

Since Onebox is [making HEAD request](https://github.com/discourse/discourse/blob/b059a0f789d1953cc0c6e6c2ae86a39e98f42790/lib/final_destination.rb#L82-L86) to resolve the URL before actually oneboxing it, the final URL is different than provided.

Changing `FinalDestination` library to make GET request (instead of HEAD) fixes this issue, but I am not sure if that is the correct approach here (since we don’t need the response body in `FinalDestination` library). What do you think @eviltrout?

---

_[View the full topic](https://meta.discourse.org/t/cant-onebox-overwatch-forums-topic/67066)._
