Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Laurin 14 posts 134 karma points
    Oct 21, 2022 @ 08:54
    Laurin
    0

    Request an insecure XMLHttpRequest endpoint

    I made a cusom tab where I call an API. The API is only available over HTTP. My Umbraco is loaded over HTTPS.

    I got the error, that reauest has been blocked, because it isn't secure.

    Error:

    Mixed Content: The page at 'https://[my page]' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://[API-URL]'. This request has been blocked; the content must be served over HTTPS.
    

    How can I call my API?

  • Laurin 14 posts 134 karma points
    Oct 24, 2022 @ 07:52
    Laurin
    100

    I have found a workaround for this.

    You can chose to allow insecure data in Chrome and Firefox. Now I made a text, hot wo allow insecure content and it is working. If you find a better way, please let me know

Please Sign in or register to post replies

Write your reply to:

Draft