Setting an API base URL for an app running inside docker #547
-
|
I am using fuego and it is working well. I Really like the fact that you can also use OpenAPI and swagger. The only thing is that since my server is running inside a container, I just set the port and no IP. Consequently, when I look at the swagger page inside my app, the "API Base URL" is, Which of course breaks the swagger for that particular server. Is there a way to fix or work around that? I looked at the code and I couldn't find anything. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Edit: I figure the code but couldn't get it to work. The problem was with COORS if the server is not running from the actual URL. But after deploying I figured out that it works. If someone is interested in how to do so, here is the simplest example, |
Beta Was this translation helpful? Give feedback.
Edit: I figure the code but couldn't get it to work. The problem was with COORS if the server is not running from the actual URL. But after deploying I figured out that it works.
If someone is interested in how to do so, here is the simplest example,