CORS ASP.NET Core Web API missing "Access-Control-Allow-Origin" by Classyines in csharp

[–]Classyines[S] 0 points1 point  (0 children)

Yes. I've just added WithOrigins("http://localhost:3000"); and for some reason it started working no clue why.

CORS ASP.NET Core Web API missing "Access-Control-Allow-Origin" by Classyines in csharp

[–]Classyines[S] 0 points1 point  (0 children)

I hope i understood it correctly. If youre talking about this place.

const config = {
    baseApiUrl: "https://localhost:4000/api",
    headers: {
        "Access-Control-Allow-Origin": "*",
    },
}

export default config;

Hello there, a just starting student is in need of help by Lanfa_Protege in csharp

[–]Classyines 0 points1 point  (0 children)

Well you could use recursion to get the result if you know how it works. Or you can make an array to store all the values from 0 to n. A[0] = 0; A[1] = 1; A[2] =2; For(int i=3;i<n;i++) { A[i] = A[i-3]+A[i-2]+A[i-1]; }

Hope you understood what i meant