Hi.
I have deployed my first Wisej app (the first couple of forms, anyway) to the cloud… YAY! 🙂
I am now trying to force HTTPS to access it from the browsers. One technique I usually use and is working fine in all other websites is to add a <rewrite> to the web.config telling it to use a “rewriteRules.config” to Redirect the URL to “https://” in case it got there through a “http://” url. It looks like this:
In the web.config, inside <system.webServer>:
And then, the rewriteRules.config file will have:
However, I get the following error:
wisej.js?v=2.2.4.0:65923 WebSocket connection to ‘wss://demo.mysite.net/app.wx?url=https://demo.mysite.net/&sid=b07fdseb-eb75-2231-3444e-56c223455a0cd’ failed: Error during WebSocket handshake: Unexpected response code: 200
I guess WebSocket is the key word here.
So, would you guys know what would be the proper way to force HTTPS in a Wisej application?
Thanks in advance.
Ivan
Wisej connects to wss:// when the url is https:// because it mandatory or the browser will not allow a ws:// connection over https:///
The rewrite rule probably messes it up since it’s only for http. In Wisej it’s a lot simpler, simply add
“secure”: true
in Default.json
It should be document and commented in Default.json already.
Hi Luca.
Wow, that was quick. And easy!
Thank you so much, it worked like a charm.
And it is documented, my bad.
Cheers.
Ivan
Please login first to submit.