What drives me nuts with CORS is there's no (easy) way to disable it in the browser for development purpose, e.g. when I want to run some scripts in a local HTML file to do some basic web scrapping.
In the end I didn't get to find out if it worked or not due to boring reasons.
or just set all your cors headers to * on your server
If that’s really the case with your browser.... set it to request.origin, so it’s always valid haha