Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey Shopify Devs and Support,
We are having an issue with our custom web pixel sending origin: null in the request headers. We are following the exact example from the docs here. Below is a screenshot of our custom web pixel, its log to the console, and the DevTools details for that request. Notice Null being sent by the requesting resource. This is what my server looks like. Origin is set by the browser, its not something that can be set by the client code. As you can see the reason this request does not fail CORS is because i have origin: true in my server. This essentially just repeats back the origin it received in the Access-Control-Allow-Origin header.
Shopify sending Origin: null is new behavior and was not like this before. If anyone has some context on this or a solution to fix this, I would be greatly appreciative.
Also looking for a solution here
Receiving the same error. I have seen in some non-Shopify forums that window.postMessage() may be a solution, but I am not sure if or how that can be implemented here. Is anyone able to assist?
Same issue here, any updates on this?
We are also facing the same error, is there any updates on this?
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025