# send js agent beacon to cluster active gate

**URL:** <https://community.dynatrace.com/t/send-js-agent-beacon-to-cluster-active-gate/21106>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [December 22, 2020, 6:03pm UTC](https://community.dynatrace.com/t/send-js-agent-beacon-to-cluster-active-gate/21106 "2020-12-22T18:03:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [December 22, 2020, 6:03pm UTC](https://community.dynatrace.com/t/send-js-agent-beacon-to-cluster-active-gate/21106/1 "2020-12-22T18:03:09Z")

</div>

Hi guys,

Customer asks if there is a way to set JS agent of web application to send its beacon posts (AKA **rb\_** ) to cluster active gate?

All the different setting we have tried were unsuccessful and return http response 405 errors.

When we used JS agent from an agentless web application the beacon posts (AKA **bf\_** ) were sent successfully.

Is there a way to send **rb\_'s** to cluster active gate?

Thanks in advance

Yos

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [December 22, 2020, 6:57pm UTC](https://community.dynatrace.com/t/send-js-agent-beacon-to-cluster-active-gate/21106/2 "2020-12-22T18:57:31Z")

</div>

For change the beacon url you could use this:

 ![27726-1608663271845.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/3/734689fd75e96ea3234836b9772881185ac576dd.png)

I did it for an old employer where POST was being denied by the application server serving the JS since it had an internal ACL for returning POST.  
Setting that to the beacon in the AG i was able to make it work, but i dont really recall what i did setup there.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [December 23, 2020, 7:10am UTC](https://community.dynatrace.com/t/send-js-agent-beacon-to-cluster-active-gate/21106/3 "2020-12-23T07:10:18Z")

</div>

Hi [@Dante P.](https://answers.dynatrace.com/users/42286/view.html)

That is the exact place in which we added the cluster active gate url, but all the rb\_s got http response code 405. the question is that a bug or a feature (.i.e. CAG cannot deal with rb\_s)

Thanks for sharing

Yos

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [December 23, 2020, 12:20pm UTC](https://community.dynatrace.com/t/send-js-agent-beacon-to-cluster-active-gate/21106/4 "2020-12-23T12:20:08Z")

</div>

mmm i don’t recall 😕 really. The use case was a OneAgent auto inject. I just check with people from the old org if the settings remain the same and it does, checking the API for web config i gather the info of what was done:

| type | “AUTO\_INJECTED” |
| --- | --- |

| injectionMode | “JAVASCRIPT\_TAG” |
| --- | --- |

| monitoringDataPath | “[https://CAGURL:9999/bf/tennantID](https://CAGURL:9999/bf/tennantID)” |
| --- | --- |

with that the original reporturl change from

```auto
reportUrl=/rb_tennantID

```

to:

```auto
reportUrl=https://CAGURL:9999/bf/tennantID

```

in the appid \_bs.js. I used the bf endpoin it seems. I might have try the rb\_ and since it might now work i tested the bf also and that did work at the time.
