Fix errors with custom CORS by using the "rack-cors" gem