Hi there,
I'm developing a Media Centeral plug-in react app that will be getting data from external DBs or APIs. I've been through the Media Central API and I don't see anything about web requests. I also tried making a get request to "www.google.ca" and got back an AVID page. How does HTTPS requests and web requests in general work in the Media Centeral world?
Kenneth.
The way I do this is via a proxy service running as part of the CloudUX backend. I send requests from the UI to this proxy service which then communicates with my external services and returns the response back to the UI.
This really is the only sensible way to do this because the browser will block most attempts to communicate with other servers directly. A nice benefit is that your backend service will get some extra context, for example which user is currently logged in.
See http://developer.avid.com/connector_api/ for creating your own services.
@Tilman,
Is this service seperate from the plug-in?
Tilman is most probably using a paltform service, i.e. a service that connects to the Avid Platform Bus and can therefore be communicated with directly from the UI application.See http://developer.avid.com/connector_api/
Mike is correct, this is a separate installation bundle and not part of the UI Plugin. When deploying this on a CloudUX cluster you will have to install 2 separate items: the UI and the proxy service.
This is a lot of extra work but there are a couple of advantages vs. changing the access control headers:
* Your UI plugin won't suddenly cease to work when Google adds another security requirement
* You won't be affected by IT locking down outgoing requests from desktop machines
* Your proxy will get the user session information so you'll know which CloudUX user made the call
* Your service can talk to Avid services on the bus in case you need to do some extra work (note: you'll probably need the correct entitlements for that)
I see, I think a Connector service won't be neccessary for what I'm trying to do. Turns out I'll needed is the right CORS policy on the API server. Thanks for your help :)
© Copyright 2011 Avid Technology, Inc. Terms of Use | Privacy Policy | Site Map | Find a Reseller