healthchecks_healthchecks/templates/front/snippets/browser.txt
2020-07-17 16:51:23 +03:00

4 lines
165 B
Plaintext

// the server returns appropriate CORS headers so cross-domain AJAX requests work:
var xhr = new XMLHttpRequest();
xhr.open('GET', 'PING_URL', true);
xhr.send(null);