mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
17 lines
327 B
PHP
17 lines
327 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
echo "Hello from app2 (calling external authorized resource) !";
|
||
|
|
|
||
|
|
?>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
var xhttp = new XMLHttpRequest();
|
||
|
|
xhttp.onreadystatechange = function() {
|
||
|
|
if (this.readyState == 4 && this.status == 200) {
|
||
|
|
alert("HTTP request is ok !");
|
||
|
|
}
|
||
|
|
};
|
||
|
|
xhttp.open("GET", "https://app1.example.com", true);
|
||
|
|
xhttp.send();
|
||
|
|
</script>
|