Verify CORS policy allows requests from allowed origins
Preconditions (2)
Step 1: Open Postman and create a new GET request to the API endpoint https://api.example.com/data
Step 2: Add a custom header 'Origin' with value 'https://allowed-origin.com'
Step 3: Send the request
Step 4: Observe the response headers
Step 5: Repeat the request with 'Origin' header set to 'https://disallowed-origin.com'
✅ Expected Result: For the allowed origin, the response includes header 'Access-Control-Allow-Origin' with value 'https://allowed-origin.com' and status code 200. For the disallowed origin, the response does not include 'Access-Control-Allow-Origin' header or returns a CORS error status.