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

DOMException - Not allowed to access cross-origin stylesheet #199

Open
fellipeh opened this issue Feb 5, 2025 · 1 comment
Open

DOMException - Not allowed to access cross-origin stylesheet #199

fellipeh opened this issue Feb 5, 2025 · 1 comment

Comments

@fellipeh
Copy link

fellipeh commented Feb 5, 2025

Hello,

I'm using latest version, using dev server debug=True environment and after include:
<script type="module" src="{% static 'formset/js/django-formset.js' %}"></script> into my master.html, I got these warnings:

Image

I followed the Install instructions, excluding the part of I'm using CSS framework to be used is installed via npm which is not my case. I'm not using npm on this project.

I saw one PR which is supposed to fix this #39 but still get this warning.

Is this a bug or an miss-understanding of the installation process?

[edit]

I'm using an admin theme, and on the admin theme css I have:

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

if I remove that from css and move to the `', stops the warning, but mess up with the layout..

is there another way to prevent this warning using django-formset?

Thanks!

@jrief
Copy link
Owner

jrief commented Feb 8, 2025

did you modify any of the source files? Looks like a safety feature from your browser, to prevent cross site scripting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants