Better CORS support check.
Merge pull request #51 from agrc/cors

Better CORS support check.