How to prevent CSRF Attack in ajax application -


can me how prevent csrf attack in ajax application. in our application ( php + jquery ) main form loaded once , other forms loaded on request using ajax . example, when user click customer , page loaded using ajax request. how prevent customer page should not called directly or how generate , use csrf token prevent

you must try in .htaccess file .

 # don't allow pages framed - defends against csrf  header set x-frame-options deny 

read full article here


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -