Fixed the CORS check and fallback.
Merge pull request #14 from pjackson28/updatecorscheck

Fixed the CORS check and fallback.