-
For requests that occur on the browser side, when developing locally, how to proxy the server to handle cross-domain issues |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Dec 14, 2021
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
machour
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.