Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing CorsMiddleware #781

Closed
p-smith1 opened this issue Jul 30, 2015 · 5 comments
Closed

Missing CorsMiddleware #781

p-smith1 opened this issue Jul 30, 2015 · 5 comments

Comments

@p-smith1
Copy link

After upgrading a project to beta6 and installing the Microsoft.AspNet.Cors.Core 1.0.0-beta6 package, there is no longer the 'UseCors' extension for using the 'CorsMiddleware' component. 'ConfigureCors' and 'AddCors' still exist, but not 'UseCors'. I assumed this was removed, but after downloading the CORS beta6 release from GitHub, those components seem to still exist.

Project is just using dnx451.

@henkmollema
Copy link
Contributor

Add Microsoft.AspNet.Mvc.Cors too.

@p-smith1
Copy link
Author

Added Microsoft.AspNet.Mvc.Cors, too, but it doesn't seem to have UseCors either. I do see that the package has AddCors and ConfigureCors. I was using it fine in beta5.

@Eilon
Copy link
Member

Eilon commented Jul 30, 2015

UseCors is defined in Microsoft.AspNet.Cors - please make sure you have a reference to that in project.json.

@Eilon Eilon closed this as completed Jul 30, 2015
@p-smith1
Copy link
Author

Thank you. It looks like NuGet is showing 5.2.3 to be the absolute latest, which was causing confusion for me. I had to come way down the list to 1.0.0-beta6. Thanks!

@Eilon
Copy link
Member

Eilon commented Jul 30, 2015

Ah, yes, we will fix the version thing. See aspnet/CORS#24.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants