ServiceDesk

 View Only

CORS error when executing api teams js

  • 1.  CORS error when executing api teams js

    Posted Feb 10, 2023 05:23 PM

    Hi,

    I'm trying to execute a JavaScript containing a Teams API in the form detail_cr from a button and I get a CORS error.

    Function:

    ImgBtnCreate("btn100", "Control remoto","teamsapi()","true", 0);

    Error:

    Access to XMLHttpRequest at 'https://login.microsoftonline.com/3934790d-e0f3-4707-9edb-1d62f62c96d3/oauth2/v2.0/token' from origin 'https://centrodeservicios2.dnp.gov.co:8443' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    Attachment(s)

    js
    teamsapi - Copy.js   1 KB 1 version