Nirlan Posted July 31, 2017 Posted July 31, 2017 Delphi 10 Berlin Unigui 0.99.96.1335 I have an application that uses a uniURLFrame with the following command in oncreate: UniURLFrame1.URL: = 'http://www.skyfalcon.com.br/....'; This is working normally, but when you enable the SSL option on the ServerModule nothing is displayed in the frame. The application is already in production and running normally with SSL enabled, with the exception of displaying the html page in the UniURLFrame. Thanks for any help. Quote
delagoutte Posted August 1, 2017 Posted August 1, 2017 show console, i think you must have the reason of this block frame. try this if possible uniurlframe1.url := TranslateUrlToCurProt('http://www.skyfalcon.com.br/...'); function TUniMainModule.TranslateUrlToCurProt(aUrl : string):string; begin if UniSession.SSL then begin result:= stringreplace(aUrl, 'http://','https://',[rfignorecase]); end else begin result:= stringreplace(aUrl, 'https://','http://',[rfignorecase]); end; end; Quote
Nirlan Posted August 1, 2017 Author Posted August 1, 2017 Unfortunately this will not work because there is no https page: '' https: //www.skyfalcon.com.br / ... ' I need is that the UniURLFrame displays the page '' http: //www.skyfalcon.com.br/ ... ' with UniSession.SSL enabled. Quote
delagoutte Posted August 2, 2017 Posted August 2, 2017 i'm not sur but i think you are blocked because you try to do cross protocol. try to see in your console, i think your webbrowroser say you why the iframe is not displayed. So i don't think there is an issue... or i don't know it Quote
Nirlan Posted August 2, 2017 Author Posted August 2, 2017 You are right. console: Mixed Content: The page at 'https://52.67.76.189:7777/'was loaded over HTTPS, but requested an insecure resource 'http://www.skyfalcon.com.br'. This request has been blocked; the content must be served over HTTPS. Quote
nannoc Posted October 24, 2018 Posted October 24, 2018 Has anyone got a solution for this, that is calling an insecure site from a secure site? Quote
delagoutte Posted October 25, 2018 Posted October 25, 2018 hum, i think there is no other solution than the one I proposed see : https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content/How_to_fix_website_with_mixed_content Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.