Register service-worker for my app on root directory

In my app I need to register service-worker for push notifications. Service worker file is hosted on my server and this header is set:

service-worker-allowed: /

However using App Proxy Cloudflare is removing that header so I am unable to register service-worker with root scope. Is there any way to set this header on Cloudlfare proxy?

Were you able to solve the problem?

Hi, afaik Shopify removes that header for security reasons. If you have a good excuse, you can ask from the support to make an exception for your app.