TravyDale
Member
Hello, I am working on a website that is going to login and call and orchestration through the JDE Rest API. We are on version 9.2 I believe. I have tested the API calls through Postman and they are working as expected.
My goal was to do everything through JavaScript, but I am having a lot of issues with CORS. I am unsure how to get around this issue. My error is below:
Access to XMLHttpRequest at 'http://<servername&port>/jderest/v2/tokenrequest' from origin 'http://localhost:29757' 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.
Do I need to make a setup change within JDE or do I need to structure my HTTP POST differently?
My goal was to do everything through JavaScript, but I am having a lot of issues with CORS. I am unsure how to get around this issue. My error is below:
Access to XMLHttpRequest at 'http://<servername&port>/jderest/v2/tokenrequest' from origin 'http://localhost:29757' 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.
Do I need to make a setup change within JDE or do I need to structure my HTTP POST differently?