OriginalPostID-263396
Discussion posts and replies are publicly visible
Hi Shanmukha
I am creating a POC on Embedded interface referring to the docs:
https://docs.appian.com/suite/help/18.1/Embedded_Interfaces.html
My code is as follows:
<!DOCTYPE html> <html> <head> <title>Test Page </title> <!-- This script loads the Appian Web components; change it to your Appian server's domain --> <script src="https://exampledev.appiancloud.com/suite/tempo/ui/sail-client/embeddedBootstrap.nocache.js" id="appianEmbedded"></script> </head> <body> <b> This is test page</b> <!-- This custom HTML element specifies an Appian report to embed on the HTML page --> <appian-report reportUrlStub="CZA3Iw"></appian-report> </body> </html>
Here I just want to call a tempo report from my web page.
As per suggestions above, I have added the ip address of my machine in CORS. Also I have added myself in SAML group.
However, I am getting the error:
Failed to load resource: the server responded with a status of 401 ()
Test%20HTML.html:1 Failed to load exampledev.appiancloud.com/.../ping No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 401.
embeddedAuthUtility-ad522149e857770d25f3.cache.js:55 Failed to query server. Status Code: 0
request.onreadystatechange @ embeddedAuthUtility-ad522149e857770d25f3.cache.js:55
Any suggestions.
Hi Komal, What is the value that you have given in the Appian CORS is it ip address or the localhost? Did you test it the same in all browsers? and please let me know what you see in each browser so that we can corner the issue sometimes it may be problem with browser as well Thanks
Hi Shanmukha In Appian CORS I have given the IP address. Below are the issues observed in all the browsers: 1. IE Issue - SCRIPT1028: Expected identifier, string or number File: embeddedBootstrap.nocache.js, Line: 1, Column: 6595 2. Chrome Issue embeddedAuthUtility-0d63ded74113090d0384.cache.js:55 GET exampledev.appiancloud.com/.../ping 401 () performInitialAuth @ embeddedAuthUtility-0d63ded74113090d0384.cache.js:55 authListener @ embeddedBootstrap.nocache.js:1 load (async) registerComponents @ embeddedBootstrap.nocache.js:1 Test%20HTML.html:1 Failed to load exampledev.appiancloud.com/.../ping No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 401. embeddedAuthUtility-0d63ded74113090d0384.cache.js:55 Failed to query server. Status Code: 0 3. Firefox issue The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. Test%20HTML.html Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at exampledev.appiancloud.com/.../ping. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Failed to query server. Status Code: 0 Any suggestions... Thanx in advance!!