Title: cdbt_api_key not working
Last modified: August 30, 2016

---

# cdbt_api_key not working

 *  [siku021](https://wordpress.org/support/users/siku021/)
 * (@siku021)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/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: ‘[http://perirx.com/?cdbt_api_key=<api_key>&cdbt_table=registered_users&cdbt_api_request=get_data&conditions=](http://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 
   [http://perirx.com/?cdbt_api_key=<api_key>&cdbt_ta…ers&cdbt_api_request=get_data&conditions=](http://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.
 * [https://wordpress.org/plugins/custom-database-tables/](https://wordpress.org/plugins/custom-database-tables/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cdbt_api_key-not-working/#post-6488158)
 * I’m so sorry for not replying sooner.
 * By the report from you, I’ve found that there is a bug in the processing of WEB
   API when not logged in.
 * I will try to fix that bug which releasing the version 2.
    Sorry, please wait
   for a while.
 *  Thread Starter [siku021](https://wordpress.org/support/users/siku021/)
 * (@siku021)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cdbt_api_key-not-working/#post-6488160)
 * Hi, thanks for replying. I actually found it was another security plugin my site
   was using that was messing up the url before it was passed in. The iThemes Security
   plugin was dropping the variables from the url. There was a setting my team member
   had to turn off, but I’m not sure which one.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘cdbt_api_key not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-database-tables_e4e2e2.svg)
 * [Custom DataBase Tables](https://wordpress.org/plugins/custom-database-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-database-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-database-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-database-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-database-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-database-tables/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [siku021](https://wordpress.org/support/users/siku021/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/cdbt_api_key-not-working/#post-6488160)
 * Status: not resolved