Support » Plugin: Schema - All In One Schema Rich Snippets » CORS errors on SSL page

  • overflood

    (@overflood)


    Hey guys,

    great plugin! Unfortunately I’m getting CORS errors in post edit page:
    /wp-content/plugins/all-in-one-schemaorg-rich-snippets/js/jquery.timePicker.min.js?ver=5.0.3

    It tries to load via http instead of https. Would be great to have it fixed!

Viewing 4 replies - 1 through 4 (of 4 total)
  • overflood

    (@overflood)

    Can be fixed by replacing WP_CONTENT_URL to content_url() in init.php:

    if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
           //winblows
        define( 'BSF_META_BOX_URL', trailingslashit( str_replace( DIRECTORY_SEPARATOR, '/', str_replace( str_replace( '/', DIRECTORY_SEPARATOR, WP_CONTENT_DIR ), content_url(), dirname(__FILE__) ) ) ) );
    } else {
        define( 'BSF_META_BOX_URL', apply_filters( 'bsf_meta_box_url', trailingslashit( str_replace( WP_CONTENT_DIR, content_url(), dirname( __FILE__ ) ) ) ) );
    }

    Pictures are still loaded not via SSL, so this bugfix will be left after changing lines above.

    • This reply was modified 4 months ago by  overflood.
    • This reply was modified 4 months ago by  overflood.
    uttam007

    (@uttam007)

    Hi @overflood

    Thanks for the solution!

    We will debug it and solve the issue.

    Regards,
    Uttam

    overflood

    (@overflood)

    @uttam007 I’ve found why this only appears on our site. The website_url was written with http://. But any other plugin was fine with this, so a bugfix will help in any case.

    Hi @overflood

    Thanks for your confirmation!

    We will dig into this concern and see what will be done in this case.

    Regards,
    Uttam

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.