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

Make it easier to debug & fix CSP (e.g. script-src, Trusted Type) errors #566

Closed
wwwillchen opened this issue Jul 1, 2024 · 0 comments · Fixed by #724
Closed

Make it easier to debug & fix CSP (e.g. script-src, Trusted Type) errors #566

wwwillchen opened this issue Jul 1, 2024 · 0 comments · Fixed by #724
Labels
product excellence Improving developer experience, UI and errors

Comments

@wwwillchen
Copy link
Collaborator

See #549, #428 (comment) - people get tripped up on CSP errors, which are quite frequent when dealing with web components.

We should do the following:

  1. Prominently show CSP errors in Python stdout/stderr and in the Mesop UI (when in editor mode) - it's not obvious for people to find the errors in Chrome DevTools and then we can show a more actionable message, linking to our docs with examples of how to fix it.

  2. Print a suggested code to fix the CSP issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product excellence Improving developer experience, UI and errors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant