CORS
axios.defaults.withCredentials = true;Using the CORS middleware
CORS middleware$ go get github.com/iris-contrib/middleware/jwt@masterimport "github.com/iris-contrib/middleware/cors"crs := cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowCredentials: true,
})The CORS Configuration
CORS ConfigurationDo it yourself
Last updated
Was this helpful?