开发者

What are best practices/methods in preventing ajax requests and or form submisions from pages that my server did not serve?

开发者 https://www.devze.com 2023-01-27 11:20 出处:网络
Knowing that anyone can see my AJAX URL string and or forms how can I prevent calls 开发者_开发知识库or submissions from pages that my server did not serve?Verifying the source of the form submission

Knowing that anyone can see my AJAX URL string and or forms how can I prevent calls 开发者_开发知识库or submissions from pages that my server did not serve?


Verifying the source of the form submission is best done by using cookies/sessions. Authenticating each request is your best protection against such cross-site attacks.

0

精彩评论

暂无评论...
验证码 换一张
取 消