# SSE behind firewall

**URL:** <https://drone.discourse.group/t/sse-behind-firewall/4493>\
**Category:** Drone Support\
**Created:** [December 4, 2018, 8:56pm UTC](https://drone.discourse.group/t/sse-behind-firewall/4493 "2018-12-04T20:56:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidbyttow](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/davidbyttow/32/4537_2.png) [@davidbyttow](https://drone.discourse.group/u/davidbyttow)\
**Post date:** [December 4, 2018, 8:56pm UTC](https://drone.discourse.group/t/sse-behind-firewall/4493/1 "2018-12-04T20:56:04Z")

</div>

We have a security firewall that authenticates with cookies, however it seems that the current implementation of SSE sends an auth token as a query param, and it does not use withCredentials to send cookies.

Is there anyway to support cookies to be sent and/or use an alternate server URL for that particular endpoint?

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [December 4, 2018, 9:13pm UTC](https://drone.discourse.group/t/sse-behind-firewall/4493/2 "2018-12-04T21:13:01Z")

</div>

SSE only sends the oauth token as a query parameter in the local testing environment, when running the local `npm serve`. This is required because it is running outside of the Drone server environment. If you login to [cloud.drone.io](http://cloud.drone.io) (for example) and inspect the underlying network request to `/api/streams` you will see the `_session_` cookie is included in the request.

---

<div class="post-metadata">

**Author:** ![davidbyttow](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/davidbyttow/32/4537_2.png) [@davidbyttow](https://drone.discourse.group/u/davidbyttow)\
**Post date:** [December 4, 2018, 9:34pm UTC](https://drone.discourse.group/t/sse-behind-firewall/4493/3 "2018-12-04T21:34:09Z")

</div>

Yes, you’re correct. For whatever reason, our setup is blocking these requests even though the credentials are sent. I’ll file this under a configuration error on our part. 🙂
