Hi, I'm having a problem with chrome extensions and CORS.
For some reason, when I perform a $http.get in a chrome extension page (I open it through) chrome-extension://id/index.html
Everything is fine, and I get the requested page
however, when I run the same page inside an iframe on my page, eg <iframe src="chrome-extension://id/index.html"> the same code fails!
When debugging it seem that somehow on that page, angular decides that my $http should be CORS and sends an OPTION request before.
My server does not support CORS and I don't need to as in my chrome extension I don't have same-origin restrictions.
So 2 questions arise :
1) What makes angular default to CORS in one of the situations?
2) How can I turn off CORS and sending the OPTION header programmatically? (google didn't help, found all kinds of obsolete stuff like $http.defaults and other non supported crap)