Skip to content

Instantly share code, notes, and snippets.

@mtinra
Last active May 2, 2019 07:19
Show Gist options
  • Save mtinra/7c9a8abf8d67960da39d62de67a5c09b to your computer and use it in GitHub Desktop.
Save mtinra/7c9a8abf8d67960da39d62de67a5c09b to your computer and use it in GitHub Desktop.

Revisions

  1. mtinra revised this gist May 2, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion index.html
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    <script>
    const request = new XMLHttpRequest();
    const url = 'https://developer.mozilla.org/';
    const url = 'https://www.google.co.th/';

    function CORSTesting() {
    if(request) {
  2. mtinra created this gist May 2, 2019.
    13 changes: 13 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <script>
    const request = new XMLHttpRequest();
    const url = 'https://developer.mozilla.org/';

    function CORSTesting() {
    if(request) {
    request.open('GET', url, true);
    request.send();
    }
    }

    CORSTesting();
    </script>