I have created an outsystem application which I am hosting using an IFrame in a separate application.
Noticed a couple of issues when posting a data to the server.
If I enable anonymous authentication I am able to load a page that lists some data from REST API. Listing of the data works fine.
However, when I POST the data to the server I get the following error:
Error Deserializing ViewState of page "ASP.contactdetail_aspx", visitorid "5d09591a-a18b-4e50-bbf7-11a7b9e5967b", size 172 bytes ("ubZXS4+1JU...").Cannot decrypt the content
I tried setting the button method to "Submit" or "Ajax Submit". Still get the same error.
I see the same error even when trying to login if I turn off anonymous.
Error Deserializing ViewState of page "ASP.login_aspx", visitorid "b70503d1-0735-4122-839b-cb2cdbd5839d", size 236 bytes ("KofaDJHBE7...").Cannot decrypt the content
Looks like its an issue when Posting the data to the server.
Can you please suggest how to resolve this issue.
Thanks
Uma
Hello Uma,
You might want to check Content security policy of both the applications.
https://success.outsystems.com/Documentation/10/Managing_the_Applications_Lifecycle/Secure_the_Applications/Apply_Content_Security_Policy
After enabling the CSP the page started loading on the IFrame. the Current issue I am facing is when I post anything to the server from within the IFrame. Please find attached the CSP for the application.
The hosting application is a HTML page and is outside the outsystems.