I am trying to connect my application to an external localhost or server . i have made an index.html file with iframe to connect like this but i get cross origin errors sometimes. is there a way to connect the exe to external server to get the content
<object name="search_iframe" data="https://www.externalwebsite.com"
width="100%"
height="100%"
type="text/html">
</object>
Yes, ExeOutput for PHP applications run inside a Chromium-based WebView, which enforces CORS (Cross-Origin Resource Sharing) restrictions. This means that when you try to load an external webpage inside an <iframe>
or <object>
, it might be blocked due to CORS policies on the external server.
If you control the external server, you can allow cross-origin access by adding the following headers in your server’s response:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: Content-Type