• 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)
  • Thread Starter 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 6 years, 1 month ago by overflood.
    • This reply was modified 6 years, 1 month ago by overflood.

    Hi @overflood

    Thanks for the solution!

    We will debug it and solve the issue.

    Regards,
    Uttam

    Thread Starter overflood

    (@overflood)

    @uttam007 I’ve found why this only appears on our site. The website_url was written with https://. 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)
  • The topic ‘CORS errors on SSL page’ is closed to new replies.