Skip to main content

All Questions

Tagged with
0 votes
0 answers
44 views

Asp.net Core API return POST method data from postman after publish But return CORS policy error from React App [closed]

I am trying to create a React App with an ASP.NET Core API backend. The problem is when I run the API locally and try to log in from the React app, everything works fine. I can fetch data without any ...
percy's user avatar
  • 11
0 votes
0 answers
56 views

ASP.NET Core app using Windows authentication, client does not negotiate after OPTIONS request

I'm having an issue with an ASP.NET Core app that is using Windows authentication and CORS. Windows auth works fine for direct API calls. But the client fails to initiate negotiate after an OPTIONS ...
Mike Nicolino's user avatar
0 votes
0 answers
90 views

Angular application getting random 504 errors from .NET server (both Azure App Service)

My Angular application is getting random 504 errors when requesting various endpoints of my backend server (.NET). Technical stack : Backend : .NET 8 Frontend : Angular 16+ with Serverside rendering ...
Sylions's user avatar
  • 23
0 votes
1 answer
54 views

CORS failure accessing ASP.NET Core 8 Web API hosted in Azure from localhost

I have an ASP.NET Core 8.0 Web API, hosted in Azure. It works fine when everything is deployed to Azure. But we are trying to run a Reactjs front end locally and access that Web API in Azure for ...
Joe B's user avatar
  • 76
0 votes
1 answer
69 views

CORS issue: 500 Internal Server Error for first couple minutes

I have an issue with my application. Most of the time when I opened an app it failed to retrieve data for first couple minutes (only happens once); throwing 500 error - AxiosError .. Network Error. ...
letmecry's user avatar
11 votes
4 answers
827 views

ASP.NET Core Web API on Azure App Service - POST and PUT requests failing 500 for a short period

The web application is a REST API and a SPA. It's maintained and currently on .NET 6.0 and have been working steadily for years. The requests are CORS and the server is properly configured for this. ...
atlmag's user avatar
  • 191
0 votes
1 answer
66 views

Allow Cross origin for two specific endpoints. ASP.NET Core

I have an ASP.NET Core with cors initialized like this: private const string AllowLocalApp = "_myAllowLocalApp"; string[] corsEnabledOrigins = configuration.GetSection("CORSEnabled"...
denislav licov's user avatar
1 vote
2 answers
60 views

Why is my AllowAnonymous api controller routing my request through authorization?

I explicitly added the [AllowAnonymous] annotation at controller level because I need this very problem to not be happening, however when I post to the controller, I get a CORS error: Access to fetch ...
Ortund's user avatar
  • 8,175
1 vote
1 answer
79 views

HttpOnly cookie received in "Response Cookies" but does not get copied to browser Cookies [duplicate]

This is a dev environment. I am running the backend API (dotnet) from https://localhost:5001, and the front end (nextjs/react) from http://localhost:3000. A login request is sent to the back end, it ...
Derrick's user avatar
  • 383
0 votes
1 answer
125 views

.NET 8 Cors on Blazor web assembly standalone

I have Blazor web assembly standalone pProject in Visual Studio 2022. Now when I want to use HttpClient and fetch some data from some website I get this error: Access to fetch at 'https://tapi.bale....
abbas-h's user avatar
  • 410
0 votes
1 answer
54 views

React app doesn't display ASP.NET Core / EF Core database data, using Cors to access them (tutorial of Neil Cummings on REACT)

React front is on 3000 and my ASP.NET Core backend is on port 5000. React part has product definition and data fetching from localhost:5000/api and accessing data by prevState in AddProduct function. ...
Barbra Flegel's user avatar
2 votes
0 answers
69 views

CORS issues with images in dotnet middleware pipeline

The situation is the following: There are some TIF(F) files on the server Users expect them to see them To overcome the problem, we utilize an additional tool that converts TIF files to JPG assuming ...
Renat Zamaletdinov's user avatar
1 vote
2 answers
79 views

ASP.NET Core 8 Cors headers not showing

I'm running into an unexpected issue getting Cors to run on an ASP.NET Core 8 Minimal API project. I setup a test project and just used the template to get it up and running then added what I thought ...
Bryan Brown's user avatar
1 vote
1 answer
196 views

Access to XMLHttpRequest at ' from origin ' has been blocked by CORS policy only on Azure published .net core application

I know there are many similar questions on this exact same issue but why I am posting it again is because I have tried all the solutions already and also I am facing this problem in a particular ...
Pawan Nogariya's user avatar
0 votes
2 answers
76 views

Communication between API and ASP.NET Core MVC web app - does it need "CORS" or not?

This is my API: [ApiController] [Route("[controller]")] public class APIController : ControllerBase { // [Authorize] [HttpGet("[action]")] public string GetInformation(...
YaSecu's user avatar
  • 95

15 30 50 per page
1
2 3 4 5
27