INTERACT FORUM
Windows => Plug-in Development => Topic started by: #1pCH on January 26, 2018, 12:12:19 pm
-
Good Morning / Evening
I started working on a small project (Web Application, Angular v5) and ran into a problem with the library lookup service. Calling the lookup service with the Angular HttpClient (AJAX call), my browser (FF and Chrome) throw an “No 'Access-Control-Allow-Origin' header is present on the requested resource.” error.
When I swap the URL with the MCWS Alive endpoint (http://private-lan-ip-here:52199/MCWS/v1/Alive) to my running JRiver (on a NUC in the same network) the call goes through as expected, no cross-origin issues.
I think this seems to be an issue for all AJAX-based-frameworks (like all JavaScript Web-App-SAP frameworks). Is this something you are aware of? Can this be or will be addressed, fixed/changed?
Best regards from Switzerland,
Pascal
-
Sounds like something Bob might want to look at. Its probably a good idea to allow interacting with that to allow lookups through Web Apps.
I added the CORS headers to MC itself some time ago, but obviously that wouldn't affect such external services.
-
Hi Hendrik
Thank you for your fast response.
Ok, guess I will skip the resolve-address-by-access-key for the time being and work on other features/stuff.
Best regards,
Pascal