Technical work performed
- Captured live API traffic using Burp Suite.
- Examined HTTP requests and responses.
- Simulated a request from an untrusted origin.
- Inspected the backend response and CORS headers.
- Checked whether the unauthorised origin was accepted or rejected.
Outcome and relevance
The tested origin received HTTP 403 Forbidden with the response “Origin not allowed.” This shows that the tested CORS restriction worked as expected.
CORS misconfiguration can allow unintended websites to make browser-based API requests. API security testing helps identify when authentication, authorisation or origin controls require review.