Backend: Allow custom metrics endpoint to accept axios requests
Summary
This is a part of enhancing the Edit custom metrics feature. Custom metrics form will be displayed as a modal when the Edit Metrics option is clicked in #208977 (comment 336174090).
However, the form reloads upon submitting. The backend doesn't seem to allow XMLHttpRequest from the browser (Axios) i.e. form submit without page reload.
This issue will focus on enabling the API to allow processing such requests.
Intended users
Screenshot of how the modal looks like
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.