Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMAZON CONNECT ISSUE #25

Closed
stupidasker opened this issue Oct 31, 2017 · 10 comments
Closed

AMAZON CONNECT ISSUE #25

stupidasker opened this issue Oct 31, 2017 · 10 comments

Comments

@stupidasker
Copy link

REFUSED TO DISPLAY ..... IN A FRAME BECAUSE IT SET X-FRAME-OPTIONS TO SAMEORIGIN

ACK_TIMEOUT OCCURRED, ATTEMPTING TO POP THE LOGIN PAGE IF NOT ALREADY OPEN

OUR CONFIGURATION 👍

<title>Amazone Connect</title>
<script type="text/javascript" src="{{ asset('js/amazon-connect-v1.2.0.js') }}"></script> <script type="text/javascript"> connect.core.initCCP(containerDiv, { ccpUrl: 'https://INSTANCENAME.awsapps.com/connect/ccp#', loginPopup: true, softphone: { allowFramedSoftphone: true } }); </script>
@sromocki
Copy link
Contributor

sromocki commented Nov 1, 2017

You can try to increase the load timeout. I got mine at ccpLoadTimeout: 25000.
Also, have you whitelisted your development hostname in whatever instance your working with.

@sromocki
Copy link
Contributor

sromocki commented Nov 1, 2017

Also, I use Amazon's login page in an iFrame and don't use the loginPopup since I think it's better for my users. Maybe you desire the same functionality. "loginPopup: false"

@sromocki
Copy link
Contributor

Also, as a crappy workaround, you can use this chrome extension https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe?hl=en-US

@ninjamike54
Copy link

If you're seeing X-Frame-Options errors, the solution depends on what page in particular is throwing errors:

If the page is *.awsapps.com/connect/ccp, you'll need to whitelist your domain (see https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-instance.html#app-integration for details on how to do this)
If the page is *.awsapps/connect/login, this means that you aren't yet signed in (we don't support framing any page other than the CCP, including the login page), signing in with the login popup should fix the issue, since the integration automatically refreshes the frame.

@snapshotleisure
Copy link

I got stung by this for a while, make sure your origin url is https if its not. Just something to double check

@snapshotleisure
Copy link

Hi, actually im having an issue similar to above, I have added my development domain to the whitelist, "https://localhost:4200". however the iframe won't load the Login Page (loginPopup:false), i get the X-Frame-Options error.

If I set loginPopup: true, and login using the new tab, it works fine. Is there a reason why the connect/cpp# url is not working with the whitelist? Is it something i'm missing? any help will be greatly appreciated.

Thanks

@alxx
Copy link

alxx commented Feb 13, 2019

I'm using https, correctly provisioned in the Connect instance, I've tried both URLs (with /ccp and with /login), I've tried authenticating in the separate CCP, and nothing works. Whatever I do, I get "Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin'".

I understand that the iframe method is supposed to be phased out, but the latest version of the JS library still creates it.

Any suggestions?

@alxx
Copy link

alxx commented Feb 13, 2019

After much googling I've found the problem: the correct URL should end in "/ccp#" with the pound making all the difference.
Why this isn't documented clearly, in bold red characters, is beyond me. I've been using the "/login" URL because that's the one I see in the Connect dashboard.

@anthonywebb
Copy link

Why allow loginPopup to be set to false if it literally does not work due to this cross domain issues.... SMH... Cmon, fix it or remove it, but dont waste the developers time trying to debug it.

@jagadeeshaby
Copy link
Member

Please feel free to reopen if the issue persists.

More details can be found here - https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-instance.html#app-integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants