INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: No 'Access-Control-Allow-Origin' header on http://webplay.jriver.com/libraryserv  (Read 3069 times)

#1pCH

  • Member
  • *
  • Posts: 3

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
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10939

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.
Logged
~ nevcairiel
~ Author of LAV Filters

#1pCH

  • Member
  • *
  • Posts: 3

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
Logged
Pages: [1]   Go Up