WordPress Rest API Post request from AMP

You need to localize the nonce here’s how: https://developer.wordpress.org/reference/functions/wp_localize_script/

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