cdbt_api_key not working
-
I have a button on my page that, when pressed checks to see if there’s an entry in my database, but I keep getting a 403 forbidden error if I’m not logged into my wordpress site as an admin.
I use angular http.get to make a get_data call.
angular $http.get url:
‘https://perirx.com/?cdbt_api_key=<api_key>&cdbt_table=registered_users&cdbt_api_request=get_data&conditions={email:’ + encodeURIComponent(email) + ‘}’If I’m logged in to wordpress, it works perfectly. But I want people who aren’t signed into my wordpress site to be able to use this this function.
If I’m not logged in, I get this in the console and the button doesn’t do anything.
GET https://perirx.com/?cdbt_api_key=<api_key>&cdbt_ta…ers&cdbt_api_request=get_data&conditions={email:rbrown%40sparknettech.com} 403 (Forbidden)I generated my api_key using the custom database tables’ plugin settings. My request host address is my site’s address: “perirx.com”. Was I supposed to plug this api key in somewhere else in my settings or config file to make it work?
Any help is appreciated.
- The topic ‘cdbt_api_key not working’ is closed to new replies.