Cross origin resource sharing (CORS)
Last updated
Last updated
Cross-origin resource sharing is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served. A web page may freely embed cross-origin images, stylesheets, scripts, iframes, and videos.
--
SOP is a web browser security mechanism
Restricts scripts to access data from other origins
Some objects are only write- or readable
See also .
Provides controlled relexation of SOP.
See also .
Check for responses containing the Access-Control-Allow-Credentials
header and the value being set to true
Resubmit the request using a random or Origin
header
Check that that origin is reflected in the Access-Control-Allow-Origin
repsonse header
Craft malicious code that requests that data and sends the response to a server you control. Then deliver the code to the victim.
Try the same using null
as value in the request Origin
header.