Skip to content
Discussion options

You must be logged in to vote

To solve this I could relax the cors settings on the server (right?)

Correct

You can get the current origin via I think it was window.location.href in js. You can overwrite this by setting an Origin header (an empty string removes the header). May require the unsafe-headers feature flag.

Yes, the plugin, like all other plugins, have their actual logic on the Rust side. In this case this is how we are able to circumvent the cors restrictions in the first place.
The rust side's logic is very simple, it just uses the reqwest crate to fire a normal http request 🤷

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Axedyson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants