Credit: http://stackoverflow.com/a/18678703/670565
[vimeo 24705559 w=1055 h=593]Breaking The Cross Domain Barrier from SlexAxton on Vimeo.
Stack Overflow : http://stackoverflow.com/a/3083131/670565