-1

I'm using Go gin framework gin. In browser it is working fine, but in flutter web getting this error "XMLHttpRequest error." for some api

I tried official CORS middleware library provided by gin, as well as other third party libraries like "github.com/jub0bs/fcors"

  • 2
    Without much more details about the actual error, the question has no sense. Please work on updating it. It's also not clear why you have mentioned CORS and tagged the question as such as nothing in the question suggests it's a problem with CORS and/or HTTP headers in general. It may be your idea about the cause but unless you have clear evidence in support of it, it's better to not distract the readers in order to not create [an XY Problem](https://meta.stackexchange.com/a/66378). – kostix Aug 16 '23 at 08:09
  • jub0bs/fcors maintainer here. I agree with @kostix. Besides, you'll stand a better chance to get help if you follow [the guidelines for asking a good question](https://stackoverflow.com/help/how-to-ask). – jub0bs Aug 19 '23 at 19:57

0 Answers0