php - Access-Control-Allow-Origin after jQuery AJAX HEAD request -
okay simple question, everytime try make head request via jquery's ajax method, following err msg:
origin http://something.loc not allowed access-control-allow-origin.
i suppose configurable parameter on every server. links try 'investigate' site on net user inputs, there isn't list of 'known' servers)
before that, did id php's get_headers() method, works great.
i wondering, what's difference in makin requests (jquery vs. php) , why can pickup head info php , error when in jquery ?!
tnx :)
if make request using php running on server request comes you.
if make request using javascript running in visitor's browser, request comes visitor … visitor's identity … , visitor's credentials … data still available your code. if browser let access data arbitrary websites, access visitor's private information on sites.
access-control-origin allows server state data available given uri not private, javascript running on other sites allowed access it.
Comments
Post a Comment