CORS policy and HttpRequest
Posted: Thu May 09, 2019 4:40 pm
Hello,
I am trying to POST some content via #PRIM_WEB.HttpRequest to an external website which it is going to redirect from our webpage to
another if there is a success.
I receive the following answer from the browser:
Access to XMLHttpRequest at 'https://-destination-' from origin 'https://-origin-'
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.
Is there a workaround? Am I supposed to add a specific header to the request?
thanks,
Sotiris
I am trying to POST some content via #PRIM_WEB.HttpRequest to an external website which it is going to redirect from our webpage to
another if there is a success.
I receive the following answer from the browser:
Access to XMLHttpRequest at 'https://-destination-' from origin 'https://-origin-'
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.
Is there a workaround? Am I supposed to add a specific header to the request?
thanks,
Sotiris