How can I make wp-json authentication work over https for development only?

How can I make wp-json authentication work over https for development only?

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