sim642 / einstein-js

Einstein Puzzle 2.0 by Flowix Games ported to the web
https://einstein.sim642.eu/
4 stars 0 forks source link

Host application over HTTPS #37

Open sim642 opened 6 years ago

sim642 commented 6 years ago

GitHub Pages supports HTTPS but not with custom domains. Probably need to host myself on the same domain instead.

HTTPS means secure context which allows:

sim642 commented 6 years ago

Blocker: IndexedDB migration from existing HTTP origin to to-be HTTPS origin.

Possible workaround with postMessage(). Data (de)serialization via https://github.com/Polarisation/indexeddb-export-import or Dexie.js bulk operations.

Maybe with helper layer: https://github.com/pshihn/windtalk.

sim642 commented 6 years ago

GitHub Pages now supports HTTPS for custom domains: https://blog.github.com/2018-05-01-github-pages-custom-domains-https/. IndexedDB migration issue remains.