Download of attachment in digital print shop fails
Describe the Bug
A region manager reported that they cannot download attachments of applications for the Ehrenamtskarte Bayern but are shown an error message instead.
Steps to Reproduce
- Go to 'https://bayern.ehrenamtskarte.app/'
- Log in as region administrator
- Go to 'Eingehende Anträge'
- Expand the card for an application with an attachment
- Click on the attachment to download it
- See error
Expected Behavior
When clicking on the attachment, it should download the file and no error should be shown.
Additional Information
OS: Windows 11 (Version 23H2 Build 22631, 4890) Browser: Edge
Really weird error. Not sure how they can get an CORS issue here.
Access to fetch at 'https://api.entitlementcard.app/application/bayern.ehrenamtskarte.app/29082/file/0' from origin 'https://bayern.ehrenamtskarte.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
JsonFieldElemental.tsx:51
GET https://api.entitlementcard.app/application/bayern.ehrenamtskarte.app/29082/file/0 net::ERR_FAILED 307 (Moved Temporarily)
I can not reproduce this. For me it looks like it relies on their local network configuration. You shouldn't get an CORS error here. CORS blocks the fetching here but the file is on the server Has anyone some ideas how this can happen on our production environment. Maybe @svenseeberg ?
The IT department determined that the problem was related to their LSI proxy. Since they deactivated it, the region manager has been able to download attachments without any problems.