I've got an aspnet core API working well.
My frontend application has no problem with consuming simple datas from API.
But I've got a 403 error when I call an endpoint that returns a 'txt' file. It occurs just only return a FileContentResult. The 403 error generates an exception in my frontend, and the result that I expect comes inside error.response.data property. What a crazy thing!
The same endpoint returns 200 if I change the return from FileContentResult to Ok(), but obviously is not what I want.
Someone can help me ?