Mendix CORS issue

0
I'm building an application following this Mendix guide "Build JavaScript Actions: Part 2 (Advanced) | Mendix Documentation". I can make it work and connect to github by creating a new app, but in my existing application it not works for me, it returns a CORS Error, both tests were on version "9.19". I see that when I run the script in my existing app, it sends a "preflight" with "OPTIONS", something that doesn't happen in the new app.
asked
2 answers
0

try to publish the app with https and see whether you can able to access the github api or not

answered
0

It's a possible bug, the mindsphere module in my application is capturing all the "fetch's" in "index.html" and adding an "x-xsrf-token". The error does not happen in my new application, as it does not have this module.

 

image.png

image.png

 

Any solution?

answered