0

I am going to develop a Blazor application in WASM, I have to call a third party API which is not written in .net. The api is not on the same server as the WASM application and has CORS enabled. My question is:

I create the Blazor WASM application without .net core hosting and call the api directly using httpclient or I create it hosted in .net core and call the api using the controllers, if I use this approach I can protect the controllers with the token provided by the API from third parties? Which should I choose?

1 Answer 1

1

When CORS is configured correctly you should be able to call it directly from Blazor WebAssembly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.