Title: Cookie check failed error &#8211; Status Code 403
Last modified: September 15, 2021

---

# Cookie check failed error – Status Code 403

 *  Resolved [philreece](https://wordpress.org/support/users/philreece/)
 * (@philreece)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cookie-check-failed-error-status-code-403/)
 * When trying to perform a SEO scan on this website, I’m getting a red box with
   an error code. Yoast was installed for the first time.
 * ————-
 *     ```
       Request URL
       https://www.scmat.com.au/wp-json/yoast/v1/indexing/prepare
   
       Request method
       POST
   
       Status code
       403
   
       Error message
       Cookie check failed
       ```
   
    -  This topic was modified 4 years, 8 months ago by [philreece](https://wordpress.org/support/users/philreece/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcookie-check-failed-error-status-code-403%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cookie-check-failed-error-status-code-403/#post-14873144)
 * Can you please elaborate more on how exactly are you running the SEO scan? What
   tools are you using for this? What URL you’re using for the relevant scan?
 *  Thread Starter [philreece](https://wordpress.org/support/users/philreece/)
 * (@philreece)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cookie-check-failed-error-status-code-403/#post-14873156)
 * Just went to yoast and it has a run scan to update any permalink changes. I did
   this and the error appeared. The url is scmat.com.au
 * Phil.
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cookie-check-failed-error-status-code-403/#post-14874776)
 * Hello Phil,
 * Thanks for the clarification. We believe you were running the SEO data optimization
   analysis when that error occurred. Your server returned a 403 error when our 
   plugin was making a request to the REST API.
 * The Yoast plugin uses the WordPress REST API for several features, including 
   SEO data optimization. Therefore, the pathway wp-json/yoast/v1/indexing/prepare/
   is a request that our plugin makes to the REST API for scanning posts and index
   them in the website database.
 * It looks like something on your site/server setups blocks them. Therefore, SEO
   data optimization cannot be performed.
 * Because we don’t know your server setup, we cannot determine exactly why the 
   server returns a 403 for the REST API requests made by Yoast. Based on similar
   issues we receive from other users, this typically occurs due to a security or
   server setting.
 * Would you please check the ‘mod_security’ settings that prevent our plugin from
   accessing the REST API? If there are no ‘mod_security’ settings preventing access
   at the server, you may have a custom .htaccess rule or security plugin limiting
   access to the WordPress REST API. Please review any security restrictions and
   whitelist the Yoast plugin for accessing the feature. You need to whitelist all
   the yoast.com and my.yoast.com URLs.
 * If you have a Web Application Firewall (WAF), like Comodo, please verify that
   it is not set up to strip the parameter from the Yoast REST API requests. Some
   users have reported that some WAF setups are too strict to prevent Blind SQL 
   injection attacks.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cookie-check-failed-error-status-code-403/#post-14895465)
 * We are going ahead and marking this issue as resolved due to inactivity. If you
   require any further assistance please create a new issue.
 *  [4ster](https://wordpress.org/support/users/4ster/)
 * (@4ster)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cookie-check-failed-error-status-code-403/#post-14907670)
 * Dear Devnihil,
    Iam facing the same problem on the page [https://vitality4happiness.com/](https://vitality4happiness.com/)
 * > `Oops, something has gone wrong and we couldn’t complete the optimization of
   > your SEO data. Please click the button again to restart the process.
   > Below are the technical details for the error. See this page for a more detailed
   > explanation.
   > Error details
   >  Request URL [https://vitality4happiness.com/wp-json/yoast/v1/indexing/prepare](https://vitality4happiness.com/wp-json/yoast/v1/indexing/prepare)
   > Request method
   >  POST
   > Status code
   >  403
   > Error message
   >  Cookie check failed`
 * But I do not understand your recommendations:
    – how to check the ‘mod_security’
   settings? – What means, that a .htaccess rule or security plugin limits access
   to the WordPress REST API? How can I whitelist all the yoast.com and my.yoast.
   com URLs? – What are WAF setups? – How do I know and avoid that they are too 
   strict?
 * Vital and happy regards
    Klaus

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

The topic ‘Cookie check failed error – Status Code 403’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [4ster](https://wordpress.org/support/users/4ster/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/cookie-check-failed-error-status-code-403/#post-14907670)
 * Status: resolved