POW broken
craig opened this issue · 3 comments
craig commented
fionera commented
Currently berghain only works when connecting via HTTPS, as these browser APIs are not available without a encrypted connection
fionera commented
I made a branch which should fix this by adding a fallback to a js implementation of sha256 but at the cost of filesize:
Without sha.js:
dist/index.html 6.48 kB │ gzip: 2.86 kB
With sha.js
dist/index.html 19.80 kB │ gzip: 7.68 kB
I could add both to the routing and return them conditionally, so that a HTTPS response always gets the smaller file and HTTP gets the bigger file. Don't know if that worth the effort as you have to increase the buffer-size to >20kb to fit the new file