smartcomponents icon indicating copy to clipboard operation
smartcomponents copied to clipboard

Blazor WASM to call server on different URL

Open MitchellNZ opened this issue 10 months ago • 1 comments

Great work on this! Fantastic idea and very easy to use 🎉

Issue

I'm having an issue when trying to configure this in my project that has multiple hosting methods. The WASM project is attempting to call itself, instead of the API site. Currently it appears to be calling https://app.mysite.com/_smartcomponents/smartpaste, instead of https://api.mysite.com/_smartcomponents/smartpaste

Example: Blazor WASM Hosted at https://app.mysite.com as static files only.

API Server Hosted at https://api.mysite.com severing more than one static files site.

Question

Is it possible to configure the WASM project to call the API project on a different URL when using the SmartPaste component? It doesn't appear to be using the configured default HTTP client.

MitchellNZ avatar Apr 10 '24 15:04 MitchellNZ