Title: 401 Unauthorized API error
Last modified: January 23, 2025

---

# 401 Unauthorized API error

 *  Resolved [Graeme](https://wordpress.org/support/users/imgraeme/)
 * (@imgraeme)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/401-unauthorized-api-error/)
 * In Safari (desktop and mobile) a console error is showing up related to API authentication.
   As a consequence, forms aren’t working as Recaptcha doesn’t let them submit. 
   The issue was found when trying to leave a review on a product page.
 * The Safari browser console error(s):
 *     ```wp-block-code
       Blocked https://www.google.com/recaptcha/api2/pat?k=6LeKmLAmAAAAADEmn9d47jZImY33O3yP5iHhVBtv from asking for credentials because it is a cross-origin request.
       ```
   
 *     ```wp-block-code
       Failed to load resource: the server responded with a status of 401 (Unauthorized) https://www.google.com/recaptcha/api2/pat?k=6LeKmLAmAAAAADEmn9d47jZImY33O3yP5iHhVBtv
       ```
   
    - Various Google domains (per their docs) are added to the CORS policy but that
      hasn’t helped.
    - The api keys appear to be in order.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F401-unauthorized-api-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Alexandru Tapuleasa](https://wordpress.org/support/users/talextech/)
 * (@talextech)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/401-unauthorized-api-error/#post-18262090)
 * Hi,
 * I have checked the website and looked at posting a review but I don’t see captcha
   active so I can’t test. But either way I don’t have an Apple device to check 
   on Safari so unless it also happens in Chrome or Firefox there’s not much I can
   do 🙁

Viewing 1 replies (of 1 total)

The topic ‘401 Unauthorized API error’ is closed to new replies.

 * ![](https://ps.w.org/advanced-google-recaptcha/assets/icon-256x256.png?rev=2493018)
 * [Advanced Google reCAPTCHA](https://wordpress.org/plugins/advanced-google-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-google-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-google-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-google-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-google-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-google-recaptcha/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alexandru Tapuleasa](https://wordpress.org/support/users/talextech/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/401-unauthorized-api-error/#post-18262090)
 * Status: resolved