You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We wanted to download the excel file using an authenticated route to have a check of permissions before downloading.
This is the code for my Controller and trying just with a sample one. but I am still having problems with CORS. I have tried applying a CORS Middleware from different sources but still doesn't work.
All of my other routes have CORS Headers applied to them.
I don't have any answers why it is not working. I have tried also applying the headers from the response header parameter as seen on the sample code and yet the response is still not applying the CORS headers
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We wanted to download the excel file using an authenticated route to have a check of permissions before downloading.
This is the code for my Controller and trying just with a sample one. but I am still having problems with CORS. I have tried applying a CORS Middleware from different sources but still doesn't work.
All of my other routes have CORS Headers applied to them.
I don't have any answers why it is not working. I have tried also applying the headers from the response header parameter as seen on the sample code and yet the response is still not applying the CORS headers
Sample Code:
Also tried working with just returning the whole SimpleExcelWriter but still having the CORS error:
Beta Was this translation helpful? Give feedback.
All reactions