You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I tried to create a proof of concept using the api within the standard Microsoft Blazor PWA template and receive a CORS exception when trying to fetch from my index component.
Are there any examples of using this within a Blazor web assembly app? It looks like there are workarounds using proxies, would like to know if this has been done already.
Thanks!
The text was updated successfully, but these errors were encountered:
It's certainly only possible using a proxy server, because otherwise you would expose your api key to your users.
You could use NGINX to attach the authentication header with your api key to the proxied request. Should be very simple to set up.
Hi!
I tried to create a proof of concept using the api within the standard Microsoft Blazor PWA template and receive a CORS exception when trying to fetch from my index component.
Are there any examples of using this within a Blazor web assembly app? It looks like there are workarounds using proxies, would like to know if this has been done already.
Thanks!
The text was updated successfully, but these errors were encountered: