cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Looking to upgrade from Dynatrace Managed to SaaS? See how

CORS with Instrumented Web Servers

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Dear All,

  • Can we use the CORS even the webserver instrumented?
  • Can we use the Cluster ActiveGate publically available URL for the CORS?

Regards,

Babar

13 REPLIES 13

andrew_knackste
Dynatrace Helper
Dynatrace Helper

Yes, you can use CORS requests to connect to Dynatrace even with instrumented webservers. That being said, if you are using automatic injection, CORS will not be involved as the requests are going back to the injected webserver.
Cluster ActiveGate URLs should return a 200-ok response for CORS requests.


For more info, take a look at our doc Agentless Monitoring

Hello @Andrew K.

Thank you for your comments.

How am I going to verify the "Cluster ActiveGate URLs should return a 200-ok response for CORS requests."?

Regards,

Babar

Feel free to use the Chrome Devtools network manager from a browser in the application's target network zones. Ensure that the bf signals are returning a 200 status code.


Hello @Andrew K.

I made the changes to use the CORS instead of the instrumented web servers, but it did not work.

When I discussed the same subject with the Dynatrace support, and they said CORS supports only the Agentless monitoring.

Did you implement personally, the CORS with the auto instrumented web servers?

Regards,

Babar

Hi @Babar Q.

If you have automatic injection turned on, CORS will not apply as the HTTP requests are handled by the same servers that handle the HTML/dynamic requests.
If you want to set-up an application to make requests that would involve CORS, then you will need to use agentless injection on your application.

Hello @Andrew K.

Right. Itis the main challenge to use the agentless solution, whereas the automatic injection can be done easily.

If there was a way to simply stop the automatic JavaScript injection, and without manual configuration, the CORS could work.

Regards,

Babar

If you are already using Automatic Injection, I don't understand where CORS would be causing an issue. The requests should be sent back to the same servers that are handling the other HTTP requests.

Hello @Andrew K.

I guess I could not explain my concerns in the last comments. Let me reiterate once again.

  • If we stop the auto-injection, then we will have to manually insert the script in each HTML page to capture the load and XHR actions.
  • My idea was just to stop the auto-injection and then send data to CORS without manual instrumentation of JavaScript.

Regards,

Babar

Hi @Babar Q.

That makes sense. That may be the best configuration for this environment.

I still believe that using Automatic Injection should be preferred here, but I don't know what the specific requirement you have around CORS would be.

Hello @Andrew K.

The only objective is to remove the load of beacon data from the webserver.

Regards,

Babar

dave_mauney
Dynatrace Champion
Dynatrace Champion

I thought this was as simple as simply changing the beacon path to an absolute URL.

I have to admit, this completely slipped my mind!

MarwanC
Guide

I seek your help gurus, and may be this thread is relevant, I am having issues to use BizOps is this still working system and is it supported

 

BizOpsConfigurator (dynatrace.github.io)

 

I get the following error even though I enter correctly the URL cloud instance and my token I created according to the pre requisite:

Browser blocked XHR call, check Browser Console (F12). Possible CORS failure on https (my cluster URL)

Any feedback is much appreciated.

 

 

 

 

Featured Posts