onionshare icon indicating copy to clipboard operation
onionshare copied to clipboard

Bad display of HTML code on OnionShare

Open SatoshiFF02 opened this issue 1 year ago • 3 comments

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?

SatoshiFF02 avatar Jul 01 '24 14:07 SatoshiFF02

I would like to work on this issue

Swara345565 avatar Aug 06 '24 11:08 Swara345565

@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!

SaptakS avatar Aug 06 '24 12:08 SaptakS

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: @.***>

Swara345565 avatar Aug 06 '24 16:08 Swara345565

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).

mig5 avatar Feb 05 '25 05:02 mig5