Bad display of HTML code on OnionShare
I'm trying to upload my HTML file to OnionShare to publish a website. If I try to view the website through a normal browser, such as Chrome, the site view is optimal, however if I upload the same HTML file to OnionShare, when I view it on Tor, it simplifies the text and tables I inserted. The display of the site becomes very bad and it only happens if I upload it to OnionShare on the Tor network. Can you explain to me why?
I would like to work on this issue
@SatoshiFF02 can you share more about the code that you are trying to upload as website? We use certain CSP rules to harden some of the website features. So I am curious to know if that is something causing the site to not display correctly.
@Swara345565 feel free to work on the issue!
Yes, I will check.
On Tue, Aug 6, 2024, 5:30 PM Saptak Sengupta @.***> wrote:
@SatoshiFF02 https://github.com/SatoshiFF02 can you share more about the code that you are trying to upload as website? We use certain CSP rules to harden some of the website features. So I am curious to know if that is something causing the site to not display correctly.
@Swara345565 https://github.com/Swara345565 feel free to work on the issue!
— Reply to this email directly, view it on GitHub https://github.com/onionshare/onionshare/issues/1906#issuecomment-2271120001, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MAATXGXWQZ64IYIVZXSQ3ZQC3GXAVCNFSM6AAAAABKFXG4U6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZRGEZDAMBQGE . You are receiving this because you were mentioned.Message ID: @.***>
Please re-open this issue if you find that clicking 'Don't send default Content Security Policy' in Website mode didn't improve your issue. If it does solve the issue, it confirms that the CSP is the problem, and you should choose the other option 'Send a custom Content Security Policy header' with a CSP that works for your website (we can't tell you what that policy should be).