Title: Cocart Cors Isuue
Last modified: December 24, 2023

---

# Cocart Cors Isuue

 *  Resolved [hassanoladipupo98](https://wordpress.org/support/users/hassanoladipupo98/)
 * (@hassanoladipupo98)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/cocart-cors-isuue/)
 * i have the **CoCart – CORS Support** plugin installed and activated on my wordpress
   but am still i having cors error 
   when i make a request to the cocart api i noticed
   that my Access-Control-Allow-Origin return no value

Viewing 1 replies (of 1 total)

 *  Plugin Author [CoCart Headless](https://wordpress.org/support/users/cocartforwc/)
 * (@cocartforwc)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/cocart-cors-isuue/#post-17299428)
 * [@hassanoladipupo98](https://wordpress.org/support/users/hassanoladipupo98/) 
   This is not an error. The CORS plugin only enables CORS support.
 * If you want to specify the origin that is only allowed access, you need to apply
   filter like so. Change the returned value to what you need.
 *     ```wp-block-code
       add_filter( 'cocart_allow_origin', function() {
           return home_url();
       } );
       ```
   
 * In future, please post issues you have to the appropriate plugin support forum.
 * Thank you.
 * Have a great holiday.

Viewing 1 replies (of 1 total)

The topic ‘Cocart Cors Isuue’ is closed to new replies.

 * ![](https://ps.w.org/cart-rest-api-for-woocommerce/assets/icon-256x256.png?rev
   =3220815)
 * [CoCart - Headless REST API for WooCommerce](https://wordpress.org/plugins/cart-rest-api-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cart-rest-api-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [CoCart Headless](https://wordpress.org/support/users/cocartforwc/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/cocart-cors-isuue/#post-17299428)
 * Status: resolved