You can't request an xml or json or html from external origin (other domain etc) but you can request a javascript file from any domain, JSONP uses this advantage and wraps the data in a function, now browser starts considering them as a javascript function so they don't give any CORS warning.
  1. {  
  2.     "Name" : "Sachin",  
  3.     "Gender"  : "Male",  
  4.     "DOB"    : "08/10/1995",  
  5.     "Salary": 10000  
  6. }
JSONP will wrap the data in a function as shown below
  1. CallbackFunction({  
  2.  "Name" : "Sachin",  
  3.    "Gender"  : "Male",  
  4.    "DOB"    : "08/10/1995",  
  5.  "Salary": 10000  
  6.   })