Comments (4)
Same problem here, Cors will remove the response.
See: aspnet/CORS#90
from globalexceptionhandlerdotnet.
You'll need to call .UseCors(...
before app.UseExceptionHandler().WithConventions(...
, could you just confirm this is the case.
from globalexceptionhandlerdotnet.
Nice find. There's a workaround in that issue where you can add a MaintainCorsHeader
middleware to restore the headers that are removed, obviously not ideal. Hopefully they will fix this soon.
from globalexceptionhandlerdotnet.
@paulvanbladel Thanks, adding a MaintainCorsHeader middleware to put the headers back was the only thing that worked for me.
Regardless, it doesn't seem to be a problem with GlobalExceptionHandler.
from globalexceptionhandlerdotnet.
Related Issues (20)
- Do not restrict to return pre-defined http status codes HOT 3
- Unhandled exception log HOT 1
- any future plans for "problem+json"? HOT 3
- ASP.Net Core 2.1 Issue HOT 7
- Is This Repo Alive? HOT 2
- HTTP status code within exception HOT 15
- Add property to indicate whether the exception has handled or not
- Handling a specific exception in MVC Core 2.1 HOT 2
- Access to mapped status code in OnError handler HOT 9
- Logging Session Id HOT 5
- Allow content negotiation in .ResponseBody() HOT 1
- OnError endpoint and exception map HOT 4
- Is it possible to add a non-generic method of Map<T>() ?
- Doesn't handle custom exceptions in net.core 3.1 HOT 8
- How to configure exception to error page
- Why I am not able to get the latest GlobalExceptionHandlerDotNet 4.0.3 from nuget
- can not handle api constructor exception
- Was v5 never released?
- How to handle the response in unit test cases?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from globalexceptionhandlerdotnet.