Certificate from GeoTrust/RapidSSL is not trusted when using Fetch API in local preview. iOS preview works (android not tested).
- Fuse version 0.33.1 (build 10445)
- MacOS 10.12.3
- See minimum example below:
Create an empty app with fuse create app fetchTest
MainView.ux
<App>
<JavaScript>
const Observable = require('FuseJS/Observable');
const result = Observable();
fetch('https://data.smartbydata.no')
.then(response => result.value = response.status)
.catch(error => result.value = error.message)
module.exports = {result};
</JavaScript>
<Text Value="{result}" Alignment="Center"/>
</App>
Start a local preview: fuse preview .
Expected result: 200
Actual result: Network request failed
Unfortunately, that error message is not very helpful, but if you connect a debugger and step into the functions you will find this error message at some point: “Error: SecureChannelFailure (The authentication or decryption has failed.)”
Now run the same app on a device: fuse preview -t iOS .
Expected result: 200
Actual result: 200
Seems like the root certificate from CA GeoTrust / RapidSSL is not trusted when using local preview.