Replies: 2 comments 1 reply
-
Hello @henryhs97 Did you find any solution for this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
it is used like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm trying to build a capacitor iOS app based on a ReactJS web app I have. Everything so far is good, except that I cannot do any web requests. My suspicion is that it's because I'm using relative URLs in my web app. For example,
fetch('/api/routines')
, instead of also using the base URL (i.e.fetch('https://mywebsite.com/api/routines')
). The most straightforward fix I can think of is to update all the requests in my app to also include the base URL, but this will be quite some work so I was wondering if there was a way to set the capacitor config so that the base URL can be defined? Any other ideas are very much welcome. Thanks in advance!Beta Was this translation helpful? Give feedback.
All reactions