Hello everybody,
I'm trying to figure out how to utilize iframe within Cloud POS solution.
We end up in a situation where local POS installation works without issues, but when trying to use it in CPOS we end up with an exception "Because it violates the following Content Security Policy directive".
Is there any way to add specific urls there? I tried adding the <meta> tag in dialog/view .html file but without success:
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://url.com/" />
I checked the browser dev tools but in there in the network operations sniffer I can only see the standard policies as if my addition did not get used. Am I missing some steps?
In the button grid, there is function for open window/URL, In cloud POS, you can use it to Open in new window. Same window does not work but u can launch in new browser tab.
Hello Oksana,
In the end I came to the same conclusion and created an idea ticket.
Thank you for your response.
Hi, CPOS has CSP in web.config file and they cannot be overridden on page level, for Windows app security policies are different, so it will work.
If you use local SCU CPOS, you can adjust web.config, however, for CPOS in cloud it will not work.
If it is must requirement, I would suggest to open a support ticket.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156