Forum Discussion
Hi, tlikarish,
I faced with the same CORS issue as described above.
I have a triggered task, which is requested from another domain in JavaScript with the XMLHttpRequest object.
I use the cloud URL, the Snaplex is set to Cloudplex, the CORS allow list contains the domain the request is coming from, but it still doesn’t work.
First attempt with .*msgfocus.com as in documentation
Second one with *.msgfocus.com
In all cases there is an error
It is also stated in the documentation: " Contact SnapLogic Support to configure this setting."
Possibly there is something else to do to enable this option?
Thank you,
Vitaly Chupaev
It seems your request is not simple, so a preflight OPTIONS request is being sent first to see if it’s safe to send. The Authorization header may make it non-simple. Anyway, you’re failing on this request.
In your first experiment, did you try an explicit origin (that is, no * wildcard). It looks like it, but want to verify.
I think you should be ok going from HTTP → HTTPS.
The error message in your screenshot says No Access-Control-Allow-Origin header is present on the requested resource for the preflight request. It seems something is missing in the request.
This article touches on how to avoid preflight and other thing to check for – it’s pretty good.