I'm writing a packed app for Firefox OS. I want to communicate with an external server via https. If I execute the app as normal website it is running but in Firefox OS or the simulator I receive
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mozilla.goip.de/Webradio%20V2/php/download_streams.php. This can be fixed by moving the resource to the same domain or enabling CORS.
without "systemXHR" : {}
and "type": "privileged"
in the manifest and { mozSystem: true }
in req = new XMLHttpRequest({ mozSystem: true });
. Using this my server still only receives an request only using http. With https the server receives no request and the status of the request is 0. The server already allows access by header('Access-Control-Allow-Origin: *');
(PHP).
Is there any way to use https for the connection?