jrief / django-formset

The missing widgets and form manipulation library for Django
https://django-formset.fly.dev/
MIT License
318 stars 30 forks source link

Uncaught DOMException when using stylesheets with external @import #39

Closed Actionb closed 1 year ago

Actionb commented 1 year ago

When trying to include a bootstrap theme, the django-formset script broke: Uncaught DOMException: CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet [helpers.ts:1:7]

This is the theme I was trying to use: https://bootswatch.com/5/flatly/bootstrap.css I'm certain it is the external @import for the fonts at the top of that file. If I comment it out, it works fine.

A small example: https://github.com/Actionb/formset-css-import