Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
Answered

iFrame in Cloud POS

Posted on by 5

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?

  • commander Profile Picture
    commander on at
    RE: iFrame in Cloud POS

    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. 

  • RE: iFrame in Cloud POS

    Hello Oksana,

    In the end I came to the same conclusion and created an idea ticket.

    Thank you for your response.

  • Verified answer
    Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,595 on at
    RE: iFrame in Cloud POS

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans