Hello Nicola
You can use the preprocessor directive to skip your SSL specific code for wasm.
#ifndef Q_OS_WASM
//your SSL code
#endif
All the peer validation is done by the browser for you using well known CA. Any specific request/SSL setup required should be handled in the browser Javascript code, by adding the http request manipulation code inside the script tag, for example to avoid CORS restrictions you can manipulate the request and add cors-anywhere proxy https://github.com/Rob–W/cors-anywhere#client
(function() {
var cors_api_host = 'cors-anywhere.herokuapp.com';
var cors_api_url = 'https://' + cors_api_host + '/';
var slice = [].slice;
var origin = window.location.protocol + '//' + window.location.host;
var open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
var args = slice.call(arguments);
var targetOrigin = /^https?:\/\/([^\/]+)/i.exec(args[1]);
if (targetOrigin && targetOrigin[0].toLowerCase() !== origin &&
targetOrigin[1] !== cors_api_host) {
args[1] = cors_api_url + args[1];
}
return open.apply(this, args);
};
})();
Hope this helps.
Regards.