Skip to main content
2 of 3
I added spaces between HTTP and : because otherwise you can't see HTTP in the question
Karin
  • 59
  • 1
  • 2
  • 11

Blocked loading mixed active content EM after ajax post request to a flask app

In my browser I see the url and it starts with "HTTPS ://ide50etc". I get the EM however that says "loading... HTTP ://ide50etc". Why does it do that? It doesn't happen all the time. When my session is still clean this EM is created but once filled with stuff it disappears. I don't get the connection between the two at all. I use an ajax post request to post a json object and attach a promise to that. When done a second request is fired that sends images and sounds. I don't really know what code is relevant except all of it, of course but that's quite a lot. Please let me know what more info you need.

   $('#jsonSubmit').on('submit', function(event) {
            $.ajax({
                url : "/processWord",
                type: 'POST',
                contentType:'application/json',
                data: sendFormData
            }).done(function(response) {
                   $('#formulier').trigger('submit')
            }).fail(function(xhr) {
                   console.log('error', xhr);               }
            });
            event.preventDefault();
        });
    });
Karin
  • 59
  • 1
  • 2
  • 11