Improved CORS error handling and authentication fixes | Sanity Docs