Last active
August 8, 2017 21:53
-
-
Save NickDeckerDevs/ef3eb763b96ff659062c05f0882ec465 to your computer and use it in GitHub Desktop.
Check gliffy login status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var base_url = 'https://www.gliffy.com'; | |
| $.ajax({ | |
| url: base_url + "/go/api/user.json", | |
| dataType: 'json', | |
| }).done(function(data) { | |
| console.log('done') | |
| console.log(data); | |
| }).fail(function(jqXHR) { | |
| console.log('fail') | |
| console.log(jqXHR) | |
| }); | |
| /* console: | |
| * | |
| * fail login-test:138:9 | |
| * Object { readyState: 0, getResponseHeader: getResponseHeader(), | |
| * getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: | |
| * setRequestHeader(), overrideMimeType: overrideMimeType(), statusCode: | |
| * statusCode(), abort: abort(), state: state(), always: always(), then: | |
| * then(), 11 more… } login-test:139:9 | |
| * undefined login-test:140:9 | |
| * Cross-Origin Request Blocked: The Same Origin Policy disallows reading the | |
| * remote resource at https://www.gliffy.com/go/api/user.json. (Reason: CORS | |
| * header ‘Access-Control-Allow-Origin’ missing). (unknown) | |
| * | |
| */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment