How to win at CORS:
Don't use it. Just put the apis you need on the same domain, use a reverse proxy. Same-site just works, always.
But hey, with so many impostors around - they're not capable of fathoming how golden this advice is.
Sad truth is, since "developers" don't use this, they genuinely don't understand browsers and HTTP and that's what 's dangerous.