Hi everyone, I am trying to embed Appian records into a webpage but I am facing with some problems:
1) is there a way to bypass the CORS? The embedded element is not showing and I keep having this error "No 'Access-Control-Allow-Origin' header is present on the requested resource".
2) the first page for my Appian site is a login page, why does the embedded interface automatically convert this into an iframe? How can I remove the iframe and let it stay on the webpage itself?
Please advise, thanks!
Discussion posts and replies are publicly visible
Try these steps below its on IIS
1. Selcect the application on system tray / IIS server and open the config file. (Path : C:\Users\XXXXX\Documents\Visual Studio 2015\Projects\<projectname>\.vs\config\applicationhost.config) and insert below code under httpprotocol
<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*"/> <add name="Access-Control-Allow-Headers" value="Accept, X-Access-Token, X-Application-Name, X-Request-Sent-Time"/> <add name="Access-Control-Allow-Methods" value="GET, POST, OPTIONS"/> <add name="Access-Control-Allow-Credentials" value="true"/>