Allow CORS origin access control to work with socket requests.