Infrastructure Security

A browser application at https://portal.example.com uses presigned URLs to read private S3 objects. The URLs work outside the browser, but browser requests fail because the bucket's CORS configuration permits only https://old.example.com. What should the security engineer do?

Show the answer

Correct answerD. Add https://portal.example.com and GET to the bucket's CORS rules.

AWhy not this: Access-Control-Allow-Origin is a response header supplied by the server, not a permission granted by the requesting application.

BWhy not this: Presigned URLs already authorize access; making objects public does not correct the CORS origin mismatch.

CWhy not this: An AWS WAF allow rule does not configure the CORS response headers returned by S3.

DWhy this is right: Permitting the application's origin and GET allows S3 to return the required CORS response headers.

S3 CORS rules must permit the browser application's origin and request method. Granting public access changes authorization unnecessarily and does not resolve the mismatched CORS configuration.