Call Java api but CORS Issue

Thank you for your help.
In my case, I erased the header from the code above.
And I changed the HTTP Provider’s Authentication Method property to ‘none’ in the calling API
and restarted the server.
The CORS issue has disappeared.