Is nonce in PHP form and Ajax both necessary?

Question

I have a php form which is submitted through jQuery Ajax. Previously i had used nonce with Ajax and PHP form seperately.

Here i am using wp_nonce_field() in PHP form. Is it necessary to use wp_create_nonce() while localising script and pass this via ajax ? Or the nonce in php form is sufficient ? Using both nonce has any issues ?

0
, Shadow 2 years 2019-10-31T00:39:46-05:00 0 Answers 77 views 0

Leave an answer

Browse
Browse