Client tries to access http://example.com/token/ but example.com had HSTS header and clients browser redirects (307) to https://example.com/token/ with Origin set to 'null' which is being blocked by CORS, but 'null' cannot be in our allowed cors origin.
The error:
Access to XMLHttpRequest at https://example.com/token/ (redirected from http://example.com/token/) from origin 'null' has been blocked by CORS policy
How can the issue be solved?