Imagine the following scenario.
I maliciously manage to get my banner ad to appear on BankOfSouthernJakku.com. In this ad, I serve up some JavaScript that calls out to StealMyData.com. Since I own StealMyData.com, I add a CORS policy to allow access from BankOfSouthernJakku.com.
The JavaScript therefore sends the state of the banking app to my malicious site.
In this instance, how does CORS protect the user? Or am I completely misunderstanding what CORS does?
P.S. I did read this and this, but they don't address this particular issue.