Comments (5)
@jbagga, can you please investigate this?
@glatzert, can you please share a project we can repro with?
from cors.
@mkArtakMSFT I can make some project up, if you like, but essentially use
app.UseCors(cors => cors.SetIsOriginAllowedToAllowWildcardSubdomains())
anywhere, and then forge a POST with a header Origin: whatever-non-uir-you-like-here
.
It boils down to missing this one in the code:
if (!Uri.IsWellFormedUriString(origin, UriKind.Absolute)) return true;
from cors.
@glatzert, to avoid any misunderstandings, I would appreciate if you could still share the very-minimum project with a repro.
from cors.
CORSRepro.zip
Here you go - Edge does not reproduce the Error, but Chrome will do. I did not test Firefox nor Safari
from cors.
This issue was moved to dotnet/aspnetcore#2318
from cors.
Related Issues (20)
- Set VaryByOrigin for origins other than * HOT 1
- Log when we see an OPTIONS without AccessControlRequestMethod HOT 1
- Jwt Auth with Angular Auth0 and AspNetCore No 'Access-Control-Allow-Origin' header is present on the requested resource HOT 5
- Move CorsOptions to root namespace HOT 1
- EnableCorsAttribute has a way to set policy name via the ctor and the property HOT 2
- Add an empty constructor for EnableCorsAttribute HOT 4
- Asp.net core web api that returns File is throwing No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access HOT 4
- DefaultIsOriginAllowed should StringComparer.Ordinal be changed to StringComparer.OrdinalIgnoreCase? HOT 2
- CorsMiddleware not rejecting invalid requests HOT 7
- Using a stricter CORS policy for just one controller HOT 3
- The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed HOT 14
- Remove duplicate header names and method constants HOT 1
- Should CORS be abandoned? HOT 1
- GET and POST requests from blocked origin still executed HOT 5
- Forward `IDisableCorsAttribute` to a more broadly-used package HOT 7
- EnableCors security and client application concerns HOT 9
- THIS ISSUE TRACKER IS CLOSED - use the Home repo issue tracker
- Why Cors AddPolicy doesn't allow *.example.com ? HOT 2
- CORS Headers don't display in response HOT 1
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 cors.