This website uses cookies to ensure you get the best experience.
Learn more.
A browser API request succeeds from a command-line client but fails CORS checks. The browser sends a preflight request and the API uses credentials. Which correction is appropriate?
Published
- Return only Access-Control-Allow-Origin: * and assume it authorizes all credentialed browser requests.
- Change only the command-line client timeout.
- Disable API authentication because CORS is a substitute for identity verification.
- Configure the required preflight and actual-response headers for the allowed origin, methods, headers, and credential behavior.
Comments — 0
Sign in to comment