-
How should I use fetch api with a proxy? I.e I want to do something like |
Beta Was this translation helpful? Give feedback.
Answered by
atk
May 25, 2024
Replies: 1 comment 4 replies
-
This is impossible, since fetch can only do http(s) requests, whereas a proxy requires a different protocol to be used. Proxies can be configured in the browser settings. However, what you most likely want is a local tunnel server that allows you to bypass cors restrictions, right? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Either it is exposed or even your own site cannot use it. Make sure it is as limited as possible, CORS headers set to be only used from your site, etc.