javascript - how to secure my ajax request which comes from multiple domain? -
i want accept limit domain requests such want accept request comes www.abc.com , www.xyz.com other request should denied . can't use token process server side because multiple domain using javascript code here can't think server side token , http_addr can manipulate javascript. please suggest how validate reliable?
xmlhttprequest insert an origin
header request tells site request came from.
use populate the access-control-allow-origin
header.
(this, obviously, provides no protection against non-ajax requests).
Comments
Post a Comment