Getting CORS issue and Unauthorized in plone volto

I am getting this error in console while trying login , register in plone volto

I don't know if these can help or not

but I think u have some error in the permissions in JSON file.

You need to set CORS policy like this:

Both chrome and Firefox are showing these errors in console but it's working fine in Firefox. Is there any reason for this?