2

I have this error: Mixed Content: The page at 'https://myWebsite' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://myApi'. This request has been blocked; the content must be served over HTTPS. My API just using HTTP and cant not change it to HTTPS, somebody helps me this issue

1 Answer 1

2

Add the following in the <head> tag of your website:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
Sign up to request clarification or add additional context in comments.

1 Comment

I tried but not working

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.