Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-2201:25 AM. Last Modified:
3 weeks ago
Anyway to use rack power distribution unit application apis from an angular front end?
I'm working on an application that will be able to control power switches located on the rack power distribution unit application. Is there anyway to whitelist my angular front end application so that i can make post and get requests to the rack power distribution unit application apis? I tried calling the apis but keep getting an "No Access-Control_Allow-Headers" error. I looked further into this and it seems my frontend requires a nmc object key that is used in the endpoint. (e.g http://xxx.xx.xxx.xx/NMC/kQtlr8AEz8bRMchJ73RGiA/home.htm . But I'm not sure on how to retrieve this key as I assume this key is retrieved when logging into the application. I also tried calling the login apis first but still get Access-Control-Allow-Headers errors. Any help would be great.