How to modify source code of Gitlab to access data from a third-party API server?


When a user signs in my Gitlab, I’ll access my third-party Flask API server to generate some files for that user.

I added an axios request in dashboard projects page:

But I got an error:

What should I do? Really appreciate.