Cors Security access control allow origin

Hi guys,
i have an issue with my project:
Access to XMLHttpRequest at ‘javascript url’ from origin ‘myurl’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

CORS problem!

i tried to modify Htaccess to fix it but it didn’t work.

Header set Access-Control-Allow-Origin *

from the SC dashbord i saw it possible to set the Headers included the content security policy
i cant figure it out.

is someone able to help me?
best regards,

hi,
i resolve.
i use a system login OKTA that redirect from my domine and domine of OKTA.
i resolve with the console OKTA that enable CORS for my domine.
bye