
GIAC Certified Web Application Defender
Domain 3Objective 3
Cross Origin Policy Attacks and Mitigation GWEB Practice Questions (Page 7)
Part of the Input Handling and Injection Flaws domain, which makes up ~16% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 180-minute exam (~70–120 total, ~11–19 in this domain), expect 4–6 from this objective — we provide 35 practice questions to prepare you well beyond it. (estimate)
35questions here
7free pages
7concepts
Questions 31–35
- 31
A web application at https://api.example.com returns JSON data for authenticated users. The development team added the following response header to allow a partner dashboard at https://partner.example.com to read the data: Access-Control-Allow-Origin: https://partner.example.com. A security review notes that the application also reflects the Origin header when it matches a hardcoded list of trusted origins. Which additional header is required to make the partner dashboard's cross-origin requests work without exposing credentials to untrusted origins?
Select an answer first - 32
How does an anti-CSRF token mitigate CSRF attacks?
Select an answer first - 33
An API is used by two trusted partner applications: one at https://partner1.example.com and one at https://partner2.example.com. The API does not use cookies; clients authenticate with a bearer token in the Authorization header. What is the most secure CORS configuration for this API?
Select an answer first - 34
Which of the following is an example of an attack that bypasses or abuses cross-origin policies?
Select an answer first - 35
A web page at https://shop.example.com makes an XMLHttpRequest to https://api.example.com/data. The response contains sensitive JSON. The API does not send any CORS headers. What will the browser do?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to GWEB
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GIAC (SANS). “GWEB” is a trademark of its owner, used for identification only.