register_rest_route to send via ajax as guest results to 403

wp_nonce_field() is intended to echo out the nonce as a hidden field in your form, but above you seem to have it somewhere else. If you want to create a nonce outside of the form HTML you need to be using wp_create_nonce(). By default the API is expecting a nonce key of wp_rest. No idea what yours is, because you haven’t included the constructor where you’re setting $this->nonce_key.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)