MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/azur/index.php
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
 
   /* $.post(
          `https://login.microsoftonline.com/d39fa155-4f8a-4e78-b153-0931fe96a103/oauth2/v2.0/token`,
          {
            client_id: "1d19b87d-8776-43ab-b1d3-c12307afab0f",
            client_secret: "~v28Q~FpZiezYU43uaybbsNQS6hVNAadr5y41aPn",
            grant_type:'client_credentials',
            scope:'2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default'
          },
          function (returnedData) {
            console.log(returnedData);
            //let validInfo = returnedData;
           // localStorage.setItem("validInfo", validInfo);
          }
        ).fail(function () {
          console.log("error");
        });*/


        $.ajax({
    url: 'https://login.microsoftonline.com/d39fa155-4f8a-4e78-b153-0931fe96a103/oauth2/v2.0/token',
    type: 'post',
    data: {
        client_id: "20e8eae7-35d6-4aa9-a8a0-204c85364c83",
            client_secret: "uU28Q~nSOGJkPA~_htyjq5.tr2xMDSnRSIETycsP",
            grant_type:'client_credentials',
            scope:'2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default'
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    dataType: 'json',
    success: function (data) {
        console.info(data);
    }
});


});
</script>
</head>
<body>

<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>

<button>Get External Content</button>

</body>
</html>