Thanks for your response. I did attach screenshot of my code.
The response header is same without CORS enabled.
Every edit I made I restart the service and the server after.
I did try that but not working
first I went to this file
and my file look like this: