Issue with CSV File Download URL in Shopify App – Redirecting to Login Page

I am creating a Shopify app that converts product data into a CSV file. The file downloads properly from the app, but I also want to generate a URL that allows direct CSV file download. The URL is generated correctly, but when I try to access it, a login page appears. After logging in, it redirects me back to the same store instead of downloading the file. I need help figuring out what I might be missing and how to make this functionality work properly.

Hi,

Shopify-generated URLs for bulk operations or file downloads are typically signed and time-limited, requiring proper authentication, which could be why you’re seeing this. Are you using bulk operations for CSV generation? This should output a signed URL for downloading the data. This URL does not require additional authentication if accessed within its validity period.