lundi 7 mai 2018

XMLHttpRequest cannot load laravel-filemanager

This has never been a problem until this morning.

I'm currently using Laravel 5.2.45 as php framework, tinymce as wysiwyg editor and Unisharp/laravel-filemanger as image upload handler within tinymce.

This morning, when I try to upload an image through the filemanger, I noticed that the partial UI looks missing: screenshot shows missing UI When Inspect element, found error message:

[Error] XMLHttpRequest cannot load http://myweb/laravel-filemanager/jsonitems?working_dir=&type=Files&show_list=0&sort_type=alphabetic&_=1525726259621. Not allowed to request resource
    send (jquery.min.js:4:25637)
    ajax (jquery.min.js:4:21525)
    performLfmRequest (laravel-filemanager:454)
    loadItems (laravel-filemanager:504)
    (anonymous function) (laravel-filemanager:381)
    dispatch (jquery.min.js:3:8555)
    handle (jquery.min.js:3:5258) 

and a warming message:

[blocked] The page at https://myweb.net/create was not allowed to display insecure content from http://myweb.net/laravel-filemanager/jsonitems?working_dir=&type=Files&show_list=0&sort_type=alphabetic&_=1525726259621.

The thing I don't understand is that how can this problem show up all of sudden? And I have been trying to find where I can change the http to https and made sure that there is no reference to http://myweb.net throughout the entire repo...but the problem still exist.

Looking forward to pick the community's brain on this.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire