Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello!
We're looking for a way to enable web push notifications for our users and need to use the functionality of a service worker located on an external domain. We're trying to reference it via importScripts() within our service worker file hosted on Shopify. However, due to the "sandbox" directive in the Content-Security-Policy header, the code is unable to execute in some browsers (e.g. Chrome).
Is there a way to modify the HTTP headers for specific files, such as service worker files? We'd like to add the 'allow-same-origin' token to Content-Security-Policy header.
Thanks for your assistance!
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024