I know it sounds like a beginner's question, but there I go: I've developed a small app to be used locally in restaurantes for the waiters to be able to take orders in their phones. Pretty basic. I also developed a simple go http server to implement the necessary API. It works fine on "mobile" version, both in the emulator and actual devices.
The next step is to port the app so it can be used by the costumers in their phones' browsers. When I changed it to the web version, it worked correctly in Chrome and Edge, at least in terms of UI and navigation. But I am not able to use the API because I get the XMLHTTPError in all requests. I did a little research on the matter, and one of the answers include changing configurations in Chrome, etc., which would be impossible for the costumers to do. Also it seems that a possibility is changing the go server from http to https.
So what I'm asking here is: which is the least complicated way to go? Adding some different code in my app? Changing the server from http to https? Or is other solution available that I haven´t found?
And most important: is it worth the effort, given that current state of flutter web?
Thanks for any help.
Aucun commentaire:
Enregistrer un commentaire