<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 403 Forbidden Error when using JavaScript code in Synthetic Monitor in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/403-Forbidden-Error-when-using-JavaScript-code-in-Synthetic/m-p/263292#M2774</link>
    <description>&lt;P&gt;Hello, as the title suggests, I am running into a "403 - FORBIDDEN" error when executing my synthetic monitor on a JavaScript event. I am using JavaScript to simulate a click on a popup window, as the normal Dynatrace click event does not seem to work, no matter what CSS selectors I provide. I would like to mention that up until a few days ago, the synthetic monitor was working without issues. Additionally, when accessing the site normally, I am able to use the same commands in the Developer Tools console to perform the action with no issues. Does anyone have a solution to this? Thanks.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let btn = document.querySelector("#popup-element")
btn.click()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vuthayak_0-1732219136224.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24765i6790BF2B41255BB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vuthayak_0-1732219136224.png" alt="vuthayak_0-1732219136224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vuthayak_1-1732219156586.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24766i5DD2958251F1B78B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vuthayak_1-1732219156586.png" alt="vuthayak_1-1732219156586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 20:00:15 GMT</pubDate>
    <dc:creator>vuthayak</dc:creator>
    <dc:date>2024-11-21T20:00:15Z</dc:date>
    <item>
      <title>403 Forbidden Error when using JavaScript code in Synthetic Monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/403-Forbidden-Error-when-using-JavaScript-code-in-Synthetic/m-p/263292#M2774</link>
      <description>&lt;P&gt;Hello, as the title suggests, I am running into a "403 - FORBIDDEN" error when executing my synthetic monitor on a JavaScript event. I am using JavaScript to simulate a click on a popup window, as the normal Dynatrace click event does not seem to work, no matter what CSS selectors I provide. I would like to mention that up until a few days ago, the synthetic monitor was working without issues. Additionally, when accessing the site normally, I am able to use the same commands in the Developer Tools console to perform the action with no issues. Does anyone have a solution to this? Thanks.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let btn = document.querySelector("#popup-element")
btn.click()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vuthayak_0-1732219136224.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24765i6790BF2B41255BB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vuthayak_0-1732219136224.png" alt="vuthayak_0-1732219136224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vuthayak_1-1732219156586.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24766i5DD2958251F1B78B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vuthayak_1-1732219156586.png" alt="vuthayak_1-1732219156586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 20:00:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/403-Forbidden-Error-when-using-JavaScript-code-in-Synthetic/m-p/263292#M2774</guid>
      <dc:creator>vuthayak</dc:creator>
      <dc:date>2024-11-21T20:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: 403 Forbidden Error when using JavaScript code in Synthetic Monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/403-Forbidden-Error-when-using-JavaScript-code-in-Synthetic/m-p/263330#M2775</link>
      <description>&lt;P&gt;This would be better investigated in a ticket.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 08:44:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/403-Forbidden-Error-when-using-JavaScript-code-in-Synthetic/m-p/263330#M2775</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2024-11-22T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: 403 Forbidden Error when using JavaScript code in Synthetic Monitor</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/403-Forbidden-Error-when-using-JavaScript-code-in-Synthetic/m-p/263387#M2779</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/81972"&gt;@vuthayak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can solve it through:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Validate the user privileges against the target URL "App", at least active read "viewer" permissions.&lt;/LI&gt;&lt;LI&gt;Check if the user credentials in credential vaults have been changed from Dynatrace or from the App side.&lt;/LI&gt;&lt;LI&gt;Regarding the JavaScript, feel free to review:&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Start-with-Dynatrace/Synthetic-Monitoring-Configuring-RUM-Custom-JavaScript-Settings/td-p/260184" target="_blank"&gt;https://community.dynatrace.com/t5/Start-with-Dynatrace/Synthetic-Monitoring-Configuring-RUM-Custom-JavaScript-Settings/td-p/260184&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;User Access Permissions:&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Start-with-Dynatrace/Synthetic-Monitoring-Global-Login-Authentication/td-p/259988" target="_blank"&gt;https://community.dynatrace.com/t5/Start-with-Dynatrace/Synthetic-Monitoring-Global-Login-Authentication/td-p/259988&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Under the configured synthetic Settings &amp;gt; advanced &amp;gt; Ignore specific status code &amp;gt; specify 403 as long as your configurations are accurate.&lt;/LI&gt;&lt;LI&gt;You also have an option to enable "bypass content security policy"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;hoping it helps.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 14:55:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/403-Forbidden-Error-when-using-JavaScript-code-in-Synthetic/m-p/263387#M2779</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-11-22T14:55:20Z</dc:date>
    </item>
  </channel>
</rss>

