rolinger commented on issue #1373:
URL: https://github.com/apache/cordova-ios/issues/1373#issuecomment-1732367159

   For anyone who comes across this issue, I found a solution that side loads a 
document into an iFrame using an XHR (ie: `$http.get()`) to pass the needed 
CORS values to my backend server.    This CORS request sends the `origin` 
(which my server requires) and successfully retrieves the html document:
   ```
   $http.get(url)
   .then(function(response) {
       $scope.urlHTML = $sce.trustAsHtml(response.data) ;
   }) '
   
   ```
   Then I am able to bind the html document to the iFrame:
   
   `<iframe ng-attr-srcdoc="{{urlHTML}}"></iframe>`
   
   A full SO is listed here:  
https://stackoverflow.com/questions/77160980/angularjs-http-document-load-into-an-iframe


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to