• Resolved hassanoladipupo98

    (@hassanoladipupo98)


    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

    (@cocartforwc)

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

Viewing 1 replies (of 1 total)
  • The topic ‘Cocart Cors Isuue’ is closed to new replies.