Skip to content

client fetch cross-domain #1035

Closed Answered by sergiodxa
Lynne42 asked this question in Q&A
Discussion options

You must be logged in to vote

The easiest way is to create a Resource Route and with the useFetcher hook load the data from that route.

Then in the loader of your Resource Route you can fetch the URL on the other domain, and a server-to-server request will not have cross-domain issues.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by machour
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