Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Blazor WASM to call server on different URL #44

Open
MitchellNZ opened this issue Apr 10, 2024 · 1 comment
Open

Blazor WASM to call server on different URL #44

MitchellNZ opened this issue Apr 10, 2024 · 1 comment

Comments

@MitchellNZ
Copy link

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
Copy link
Author

After looking a little bit more at this..

It would be great if we had the option to prefix the data-url attribute on the SmartPaste component with another web address!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant