i am trying to use embedded interface to apply custom style to my page.
pls see the sample code below.
<head><script src="">appian.example.com/.../embeddedBootstrap.nocache.js" id="appianEmbedded"></script></head><body><appian-action processModelUuid=""></appian-action><appian-report reportUrlStub=""</appian-report><h1>Appian component</h1></body>
i am getting blank page.
Note: I have given process model uuid and reporturl and replaced my appian server domain name in script src.
how to resolve this issue? is there any samples available?
Discussion posts and replies are publicly visible
Did you check this?
docs.appian.com/.../Embedded_Interfaces.html
yes. i have followed the steps provided in the document.
I am asking specifically for cross-origin resource sharing.
Did you check the javascript console in browser for any errors?
yes. Getting "No 'Access-Control-Allow-Origin' header is present on the requested resource."
So you added your external domain here?
What about error message in the javascript console?
Access to XMLHttpRequest at 'abc.appian.community/.../ping from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.embeddedAuthUtility-f8c1b9f9530caaaf585a.cache.js:5 Failed to query server. Status Code: 0request.onreadystatechange @ embeddedAuthUtility-f8c1b9f9530caaaf585a.cache.js:5XMLHttpRequest.send (async)performInitialAuth @ embeddedAuthUtility-f8c1b9f9530caaaf585a.cache.js:5authListener @ embeddedBootstrap.nocache.js:1load (async)registerComponents @ embeddedBootstrap.nocache.js:1embeddedAuthUtility-f8c1b9f9530caaaf585a.cache.js:5 GET abc.appian.community/.../ping net::ERR_FAILED 401
It is working ..thanks:-)
First time, the task got loaded. Refreshed the page again , got the below error
This means that he task in that process has been submitted.
ok..thanks for the response