Cocart Cors Isuue | WordPress.org

[ad_1]

@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.

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer