Building and Securing a Go and Gin Web Application

Very nice article on go and vuejs.
In Vuejs, when requesting go APIs using Axios, I discovered a CORS error. I have added gin’s CORS middleware in go.
Is there any better solution for this error?