Hi everyone,
So I have a little bit of an issue. I'm trying to access CRM information from another web page that's outside of the domain. We are currently using CRM Online 2015, and I have followed a few blog posts to try to get authentication to work with no success. Below is a link to the blog I am trying to reference/replicate:
http://jlattimer.blogspot.ca/2014/04/soap-authentication-to-crm-online-using.html
I also built a web project in Visual Studio for easier testing, including the JS files to call.
Below is the error I receive when I try to generate my authentication token:
"XMLHttpRequest cannot load login.microsoftonline.com/RST2.srf. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:61333' is therefore not allowed access."
Obviously, CRM doesn't like CORS, which makes sense, but the solutions from the blog post is supposed to get around this. The fact the error message says it can't load the SRF file makes me thing that the blog post is old and things have changed for CRM 2015 Online.
If anyone has a solution, please let me know. I am unable to use any C# code to accomplish this as it's purely browser-to-browser calls. If you need anymore information, please let me know.
Thank you,
Matt Bayes
CRM Developer