Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download of attachment in digital print shop fails #1920

Open
connium opened this issue Feb 19, 2025 · 1 comment
Open

Download of attachment in digital print shop fails #1920

connium opened this issue Feb 19, 2025 · 1 comment
Labels
Bayern related to ehrenamtskarte bayern Bug Something isn't working

Comments

@connium
Copy link

connium commented Feb 19, 2025

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

  1. Go to 'https://bayern.ehrenamtskarte.app/'
  2. Log in as region administrator
  3. Go to 'Eingehende Anträge'
  4. Expand the card for an application with an attachment
  5. Click on the attachment to download it
  6. 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

bayern.ehrenamtskarte.app-1739950871506.log

@connium connium added Bayern related to ehrenamtskarte bayern Bug Something isn't working labels Feb 19, 2025
@f1sh1918
Copy link
Contributor

f1sh1918 commented Feb 19, 2025

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bayern related to ehrenamtskarte bayern Bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants