CORS detection and updated documentation