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

CORS error when adding the cdn link #1922

Open
alarbada opened this issue Dec 8, 2024 · 0 comments
Open

CORS error when adding the cdn link #1922

alarbada opened this issue Dec 8, 2024 · 0 comments

Comments

@alarbada
Copy link

alarbada commented Dec 8, 2024

When adding the cdn link, documented here, my astro site has this CORS error:

image

This is solved by adding a type="text/javascript" attribute to the cdn link:

    <script type="text/javascript" src="https://cdn.tailwindcss.com"></script>

So I think the docs should just include it? This happens on latest chrome, linux.

Now I have no idea why do you need to include this attribute. Maybe this is a cdn issue?

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

1 participant