lepikhinb / momentum-modal

MIT License
442 stars 26 forks source link

Header X-Inertia-Modal-Redirect - CORS issue #56

Closed eza closed 1 year ago

eza commented 1 year ago

Hi, I am using the momentum modal in a project but I run into a CORS issue.

On mount the base route is fetching some currency rate from http://www.geoplugin.net/json.gp, but when I load the page from the modal's address I get a CORS issue because of the X-Inertia-Modal-Redirect.

Any way I could circumvent this without asking Geoplugin.net to whitelist the header, or doing this in the backend?

Thanks, appreciated.