Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non CSS mime types not allowed #2922

Open
1 of 3 tasks
phen0 opened this issue Aug 24, 2023 · 1 comment
Open
1 of 3 tasks

Non CSS mime types not allowed #2922

phen0 opened this issue Aug 24, 2023 · 1 comment
Labels
priority/p2 Minor bug / Could have type/bug Bug. Not working as intended

Comments

@phen0
Copy link

phen0 commented Aug 24, 2023

Environment & Version

Environment

  • docker compose
  • kubernetes
  • docker swarm

Version

  • Version: 2.0

Description

I'm using a MacBook M1 and in Safari it happens quite often that I get an error opening the Anti-spam menu. The page is displayed but the css is not being processed.

The error message I see in Dev Console is:
non CSS MIME types are not allowed in strict mode

Crawling the internet revealed that this issue occurs also for other projects on GitHub too.

Replication Steps

Login to admin console with Safari. Open Antispam GUI. Open the admin area again. Do this a few times let's say 3-4 times going back and forth and the error will occur.

Observed behaviour

Well a webpage without css looks lousy. And I see the error in dev console:

[Error] Did not parse stylesheet at 'https://post.example.com/admin/antispam/css/prism.css' because non CSS MIME types are not allowed in strict mode.

Expected behaviour

Logs

@nextgens nextgens added priority/p2 Minor bug / Could have type/bug Bug. Not working as intended labels Aug 24, 2023
@nextgens
Copy link
Contributor

I think the new version of rspamd has fixed it in master.

Can you reproduce the problem with https://test.mailu.io/admin/antispam/css/prism.css ? Using credentials from https://mailu.io/master/demo.html#connecting-to-the-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/p2 Minor bug / Could have type/bug Bug. Not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants