What are you trying to accomplish
Trying to preview product pages using the nextjs-shopify sample. I haven’t made any changes to the /pages/product/[handle].tsx page. I’ve tried proxying, not proxying, using localhost:3000 (which runs fine) as well as using the live site for preview.
In all / many cases I’m getting the CORS blocked message in the console. ... has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Access to fetch at 'https://cdn.builder.io/api/v1/shopify/storefront/product/gid://shopify/Product/8132652663105?apiKey=e9da8b4ec1994cafb66f28c23b884c5c&pluginIdfirstname.lastname@example.org/plugin-shopify' from origin 'https://builder.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Hi @jflottawa, how are you?
I’m new here. Just exploring.
Did you already insert your test url in builder.io, just like we see in YouTube? I dont have shopify account to test it, but soon i will try and then came here again.
That would be great. I’m so early in the process that this whole ordeal is making me evaluate BigCommerce which offers multi-storefront feature. I’ve got a lot of work (and some money) already invested in Shopify so hopefully someone can help me figure out either what I’m doing wrong OR that that there is something wrong with the plugin-shopify.
I haven’t used bigcommerce yet. I already worked in some projects with Shopify, Vtex and E-Com Plus. At Vtex you need an expensive budget. Shopify you can start low, like E-Com Plus. But the last one is focus in Brazil yet, but already have some integrations for us too. Sometime ago, i was speaking with someone there and he told me that they want to integrate with builderio, at the time, i didnt know, so i started to look more. And builderio is awesome. I just need more time to learn. I think this month i will have some time to study, maybe i can help with your cors problem.
Turns out the issues I’ve reported are bugs. The Builder.IO team is working on fixing them. Hopefully this unblocks me from building something really nice. It’s hard sometimes to debug what you think is your implementation issue only to find out it’s a product/API bug