I saw someone using $http.defaults.useXDomain = true in angular when dealing with CORS. Is it really necessary to do that?
I just set up laravel and angular in different domain ( By different domain, I mean I put angular and laravel in completely separated folder in localhost www folder. FYI i use nginx). i hit the laravel controller with http request from angular. It just work fine, Whether i use the $http.defaults.useXDomain or not.
Luckily, this condition make my work little bit easier. but i still wondering is there any explanation why this happened?