Socket
Book a DemoInstallSign in
Socket

SFERA.Helpers.WEB.CORS

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SFERA.Helpers.WEB.CORS

Enables CORS in ASP.net Core WebAPI If you have a JS client, which consumes your Net Core APIs passing JSON objects, you may need to enable CORS but CORS has a security mechanism. This library, which is a middleware, helps you to accept calls skipping security checks, basically it allows any Origin and stuff like that. Full credits to all contributors from here: https://stackoverflow.com/questions/44379560/how-to-enable-cors-in-asp-net-core-webapi In order this middleware, just add the following line into your Startup.cs: public void Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Hosting.IWebHostEnvironment env) { // Add this line at bottom of Configure routine app.UseMiddleware(typeof(SFERA.Helpers.WEB.CORS.CorsMiddleware)); //used for managing CORS and allows Javascript remote calls

1.2021.1
nugetNuGet
Version published
Maintainers
1
Created
The README file is missing

Keywords

FAQs

Package last updated on 08 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.