I have backend running on Tomcat 8.5, Java Spring on Amazon EC2 instance. I make a POST request from my React app. The requests from Chrome and Firefox return 403, while the request from Safari returns 200 and the expected data. After some research I found out that I must add this code somewhere to enable CORS. I am not