oracle-samples / cerner-smart-embeddable-lib

npm project for developers to use in their SMART web app to be embeddable in Cerner’s MPage Workflow
Apache License 2.0
22 stars 31 forks source link

Allow framing within additional hosts #52

Closed josh-frost closed 2 years ago

josh-frost commented 2 years ago

Currently, the app creates an xfc Provider and has the ACLs set using a hard-coded array of all relevant, Cerner-related domains. This poses an issue in that using this library to facilitate embedding your application in a Cerner Powerchart setting, prevents your application from being hosted by any other domain.

I am proposing to update the library so that CernerSmartEmbeddableLib will accept an additionalAcls array as a parameter in it's init function. This array of additional ACLs will be merged with the hard-coded array of Cerner related domains. It would allow the library to be setup in a similar manner to the current CSP frame-ancestors header - taking an array of domains that will allow the hidden attribute to be removed and the app displayed in an iframe hosted by those domains.