I am currently trying to execute an ajax call to a remote server, only for developmental purposes. I have configured CORS on my server, which is why when I request the resource through the browser, it shows that the CORS headers are present.
https://i.stack.imgur.com/Yd0bG.png
Despite the CORS headers being present, my JavaScript request is resulting in an error.
https://i.stack.imgur.com/IRyUn.png
https://i.stack.imgur.com/eU9pu.png
I am puzzled as to why the CORS headers do not appear in the JavaScript request.