What is the different between 'Content-Type', 'application/x-www-form-urlencoded' and application/json


#1

what is the different between ‘Content-Type’, ‘application/x-www-form-urlencoded’ and application/json
when i put content type application/json like
’Content-Type’:‘application/json’, ‘Accept’:'application/json’
showing this error.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://mydoamin.com/test/append/index.php/login. (Reason: CORS preflight channel did not succeed).
but when i put
’Content-Type’, ‘application/x-www-form-urlencoded’ its working fine.
what is the different between both.
Thanks.