--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/7dc9ca3e-e299-499a-b1cb-7a17c91017a8%40googlegroups.com.
![]() | Oren Eini CEO / Hibernating Rhinos LTD
|
I'm not sure what you are trying to do.CORS setup is here:We don't provide a way to create the HttpClient externally, but I'm not sure what it is that you are trying to do
On Thu, Jun 4, 2020 at 10:46 PM Alejandro Estepa S. <aes...@gmail.com> wrote:
Hello,--I have tried an example of blazor wasm (NO HOSTED only WebAssembly) by making a REST API call to GET a document (I have achieved it by installing a plugin called "Allow CORS" in chrome that is in charge of adding the corresponding headers to the response, I have looked for the configuration option of "Raven / AccessControlAllowMethods" but I can't find it for the latest version of raven 4.2, I work in linux and there is no documentation to do it.)Now I see that ravendb client is .netstandard 2.1 and I have tried to GET a document in my project webassembly again, but it gives me an error when creating the requestexecutor in opensession. Is there a way to pass the httpclient instance of the dependency injection? I think that it would be great to be able to create a complete only WebAssembly application with access to the database.Thanks in advance.
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/7dc9ca3e-e299-499a-b1cb-7a17c91017a8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/44aee5b5-41a6-42e7-9eeb-2ec7be3ebb90o%40googlegroups.com.
If you have a sample that would be awesome to see.For localhost requests, the browser won't automatically add CORS headers. When you are using fetch, you can add "mode: 'cors'" to the options explictly, see MDN. For Blazor/C#, I am not sure how to do this but there's probably a way...