ozzyonfire / shopify-next-app

Shopify app template on Next.js with app directory
https://shopify-next-app-six.vercel.app
MIT License
64 stars 7 forks source link

adding Content-Security-Policy header #6

Closed carloslfu closed 9 months ago

carloslfu commented 10 months ago

I noticed in the previous template this was implemented, but it needs to be added here. A way to implement it is using middleware, like here: https://github.com/kinngh/shopify-nextjs-prisma-app/commit/a7bb21a38d398c2e2b9c7c295ea729865ad59069. What do you think?

ozzyonfire commented 9 months ago

good point. I remember removing that but forgot to figure out where it should go. I will see if I can add it to some middleware, or you can open a pull-request and try to add it in

ozzyonfire commented 9 months ago

should be fixed with the latest commit.

carloslfu commented 9 months ago

Awesome! Thanks!