laravel-admin-extensions / scheduling

Scheduling task manager for laravel-admin
http://laravel-admin.org/
MIT License
93 stars 33 forks source link

SSL load #6

Closed uacode closed 6 years ago

uacode commented 6 years ago

Hello, I think I found a bug...

$(function () {
        $('.run-task').click(function (e) {
            var id = $(this).data('id');
            NProgress.start();
            $.ajax({
                method: 'POST',
                url: 'http://XXX.repair/admin/scheduling/run',
                data: {id: id, _token: LA.token},
                success: function (data) {
                    if (typeof data === 'object') {
                        $('.output-box').removeClass('hide');
                        $('.output-box .output-body').html(data.data);
                    }
                    NProgress.done();
                }
            });
        });
    });

jQuery-2.1.4.min.js:4 Mixed Content: The page at 'https://XXX.repair/admin/scheduling' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://XXX.repair/admin/scheduling/run'. This request has been blocked; the content must be served over HTTPS.

In admin config 'secure' => TRUE,

z-song commented 6 years ago

Please feel free to send a pr.

uacode commented 6 years ago

Will be fixed after merge https://github.com/z-song/laravel-admin/pull/2587