skip to Main Content

ReactJS/ASP.Net Core 2.1 Version CORS Error

When I do axios post by React JS, I get the following CORS error to ASP.Net Core side. Failed to load resource: Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin. https://localhost:5001/api/vendorregistration I installed the following as my Nuget Packages and did…

VIEW QUESTION

No operations defined in spec! asp .net core 3.1, swagger is not showing controller – Asp.net

I tried this and also this several links but not getting the answer. this is my startup.cs file public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddCommonService(Configuration); services.AddSecurityServiceRepositories(); services.AddSwaggerService(); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseSwaggerService(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage();…

VIEW QUESTION
Back To Top
Search