-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Duplicate <link rel='preload'> and <script>, Browser warning to add "crossoriging" to link and "as" to script for Nuxt generated page sources #453
Comments
Updating nuxt-edge and nuxt-bridge to the latest versions didn't help to solve the problem. "@nuxt/bridge-edge": "^3.0.0-27657000.c87fdbe", |
tried
and
and
and
didn't work Tried Couldn't also make this parameter work:
|
Hi @danielroe , |
This will be fixed when we upgrade to the new version of |
@danielroe Do you know how long it will take? |
Should be this week. |
@danielroe I hope all will be fine and soon :) |
@duboloms please bit a bit patient. 😺 🤗 |
|
@danielroe, I was wondering if this is available for upgrade yet or it hasn't been released yet? Which version I should update it to? |
Yes, the automatic release didn't trigger for some reason. |
@danielroe, could you please let us know when the release will be available? |
@danielroe Sorry, do we have any news on this one being released? Should we keep this open? |
Apologies @Envoy49 🙏 This should be released in the latest edge version. |
Thanks for your hard work @danielroe , can confirm that it has been fixed. |
I'm using nuxt3, where I had the same problem, I changed the ssr to true, I know the problem comes from the preload but I really don't know why this fixed the problem. |
Discussed in nuxt/nuxt#10612
Originally posted by Envoy49 August 1, 2022
Hi, I have got two types of browser warnings asking me to add "crossorigin" and "as" to the relevant preloaded JS resources created by NUXT itself.
I have done all research I could, tried different webpack configurations and failed all the time.
I don't understand what is the problem and what is the source of it? Is it because of nuxt-bridge I am using?
Seen similar problems but people had access to the html tag to be able to add missing property, in my case I don't understand how I can manipulate it.
Using : "nuxt-edge": "^2.16.0-27358576.777a4b7f" and "@nuxt/bridge": "npm:@nuxt/bridge-edge", node version: 14.8
I think that I should be able to fix it in nuxt.config but not sure what needs to be done. Will appreciate any help
UPDATE:
I am getting script tags with "as" in the page source. Wondering why the warning still appearing in the console
I can see this PR ----> nuxt/nuxt#7709 merged back in 2020, related to missing "crossorigin"
Wondering if it fixed issue and I am not using the version which has it missing.
UPDATE:
I just discovered that the same scripts are at the bottom of my page and has "crossorigin" attribute.
So basically first error is coming from the HEAD html tag where I got all my preloaded scripts without "crossorigin" tag and the second error message is coming from bottom of the page where I have "crossorigin" tag withouth "as".
The text was updated successfully, but these errors were encountered: