sammacbeth / dat-fox

dat:// protocol as a Firefox webextension
MIT License
250 stars 12 forks source link

Infinite redirect when domain has HSTS #4

Closed sammacbeth closed 6 years ago

sammacbeth commented 6 years ago

When loading a dat site which has HSTS, we can get a conflict between the browser, which tries to prevent a insecure load on this domain, and this extension, which tries to downgrade the connection in order to proxy over dat. This leads to an infinite redirect.

One possible solution would be to detect the browsers https upgrade redirect, then fallback to the raw dat url for this site.

sammacbeth commented 6 years ago

Fixed by https://github.com/sammacbeth/dat-fox/commit/ac9c96beb64a080fd1dd6d9cb31be50eb8ab65d8