Acess-Control-Allow-Headers CORS Error with API after updating discourse

In the end, I went back to the previous version of Discourse so I didn’t have to change all the API integration