CORS when connecting to self-hosted gitlab

Hey @AnaTofuZ,
The best fix would be to add the “Access-Control-Allow-Origin” header on the Gitlab side, to enable your origin (https://ie.u-ryukyu.ac.jp) to access it. We don’t know the answer to whether that’s possible but Gitlab support should!

If it turns out to not be possible to add that header, I’d suggest reviewing this article about proxying your requests through a Netlify Function:

Here is the function you’ll call from your page:

Let us know if this helps or if you have additional questions!

2 Likes