Skip to content

Instantly share code, notes, and snippets.

@blubbll
Created November 1, 2018 23:01
Show Gist options
  • Select an option

  • Save blubbll/5f4841106a5cdc1ef8652e4668700f37 to your computer and use it in GitHub Desktop.

Select an option

Save blubbll/5f4841106a5cdc1ef8652e4668700f37 to your computer and use it in GitHub Desktop.
check if browser has good cors support
var cors = ('withCredentials' in new XMLHttpRequest()|| typeof XDomainRequest === 'undefined');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment