I'm having problem with wordpress json Api When login the user. Currently I'm Using Wordpress version 4.5.1 with listed below plugin:
<a href=" " rel="nofollow noreferrer"><img src=" " alt=""></a>
Here are the step I follow:
1) Generate nonce
<a href="http://example.org/api/get_nonce/?controller=user&method=generate_auth_cookie" rel="nofollow noreferrer">http://example.org/api/get_nonce/?controller=user&method=generate_auth_cookie</a>
Below is Response:
2) Generate Auth Cookie
<a href="http://example.org/api/user/generat...7b8&username=example&password=example" rel="nofollow noreferrer">http://example.org/api/user/generat...7b8&username=example&password=example</a>
Below is Response:
Why I'm Getting this error?
<a href=" " rel="nofollow noreferrer"><img src=" " alt=""></a>
Here are the step I follow:
1) Generate nonce
<a href="http://example.org/api/get_nonce/?controller=user&method=generate_auth_cookie" rel="nofollow noreferrer">http://example.org/api/get_nonce/?controller=user&method=generate_auth_cookie</a>
Below is Response:
Code:
{"status":"ok","controller":"user","method":"generate_auth_cookie","nonce":"4d080ff7b8"}
2) Generate Auth Cookie
<a href="http://example.org/api/user/generat...7b8&username=example&password=example" rel="nofollow noreferrer">http://example.org/api/user/generat...7b8&username=example&password=example</a>
Below is Response:
Code:
{"status":"error","error":"SSL is not enabled. Either use _https_ or provide 'insecure' var as insecure=cool to confirm you want to use http protocol."}
Why I'm Getting this error?