Getting CORS error for DBT docs hosted website on CloudFront

The problem I’m having

We are hosting the dbt docs website through CloudFront which also gets authenticated through OKTA. The first time we open the hosted website it authenticates and opens successfully but when we open this 2nd time in new tab we get CORS error while loading the manifest and catalog file. I am sharing snapshots of the console for the website with CORS error.