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
Your issue may already be reported! Please search on the actix-extras issue tracker before creating one.
Expected Behavior
I'm looking for a way to use my own custom error struct for every api call. This means that even when responding to Cors errors, I wanted to be able to use my custom struct instead of using the provided CorsError
Is there a built in way of doing that?
Current Behavior
All cors errors are returned using the CorsError struct
Possible Solution
I'm not super familiar with actix in general so there might be ways to acomplish this via middlewares?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
rcmgleite
changed the title
Is it possible to respond Cors errors with a customer error type?
Is it possible to respond Cors errors with a custom error type?
Oct 1, 2024
Your issue may already be reported! Please search on the actix-extras issue tracker before creating one.
Expected Behavior
I'm looking for a way to use my own custom error struct for every api call. This means that even when responding to Cors errors, I wanted to be able to use my custom struct instead of using the provided
CorsError
Is there a built in way of doing that?
Current Behavior
All cors errors are returned using the
CorsError
structPossible Solution
I'm not super familiar with actix in general so there might be ways to acomplish this via middlewares?
Thanks in advance.
The text was updated successfully, but these errors were encountered: