Adding custom app to my page and accessing generated file

Adding custom app to my page and accessing generated file

Patrixxk
Shopify Partner
1 0 0

Hey, I'd like to upload my custom shopify app, it's main goal is fetching the products and then generating XML files, the issue is, that I'm unable to save the generated xml file in a public/accessable folder in the shopify store( so its accessable via link/url), and the other issue is, that I'm running on a development linkn (as I test the app), so I'm also being blocked by cors policy as I attend to save the file somewhere. my idea was to upload the app to the test site, not from the terminal via development link and try if that fixes the issue.
I'm including in the attachment the code, the way I'm trying to save the XML via post method.
Thanks for any help!

Replies 0 (0)