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

[Bug]: Shopify cli theme dev command cause Cors 401 Error #3619

Open
2 tasks done
forwells opened this issue Mar 29, 2024 · 3 comments
Open
2 tasks done

[Bug]: Shopify cli theme dev command cause Cors 401 Error #3619

forwells opened this issue Mar 29, 2024 · 3 comments
Labels
Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working

Comments

@forwells
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Everything in my browser console run correct.

Actual behavior

http://127.0.0.1:9292/checkouts/internal/preloads.js?locale=en-US load fonts assets 401 Cors error.

Verbose output

Access to link prefetch resource at 'https://fonts.shopifycdn.com/open_sans/opensans_n4.5460e0463a398b1075386f51084d8aa756bafb17.woff2?h1=MTZjZWU1LTIubXlzaG9waWZ5LmNvbQ&hmac=d86a57be38592a2443960090a9b8f0860db15f2158124bdc62211aea22ed5529' from origin 'http://127.0.0.1:9292' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

The `http://127.0.0.1:9292/checkouts/internal/preloads.js` stack print:
preloads.js?locale=en-US:38 
 GET https://fonts.shopifycdn.com/open_sans/opensans_n4.5460e04……NvbQ&hmac=d86a57b… net::ERR_FAILED 401 (Unauthorized)
prefetch	@	preloads.js?locale=en-US:38
next	@	preloads.js?locale=en-US:57
load(async)		
prefetch	@	preloads.js?locale=en-US:37
next	@	preloads.js?locale=en-US:57
load(async)		
prefetch	@	preloads.js?locale=en-US:37
next	@	preloads.js?locale=en-US:57
load(async)		
prefetch	@	preloads.js?locale=en-US:37
next	@	preloads.js?locale=en-US:57
load(async)

Reproduction steps

  1. pull theme
  2. shopify theme dev
  3. view http://127.0.0.1:9292
  4. view browser console

Operating System

Windowns 10, WSL 2

Shopify CLI version (check your project's package.json if you're not sure)

3.58.0

Shell

bash

Node version (run node -v if you're not sure)

v18.19.0

What language and version are you using in your application?

No response

@forwells forwells added the Type: Bug Something isn't working label Mar 29, 2024
@forwells
Copy link
Author

forwells commented Apr 1, 2024

anyone view this ~

@isaacroldan isaacroldan added the Area: @shopify/theme @shopify/theme package issues label Apr 2, 2024
@bansavage
Copy link

maybe related to this? #1642

@forwells
Copy link
Author

forwells commented Apr 8, 2024

Yes, ~ it is not a key issue, just in local development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants