Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Whitelist localhost for development #5

Open
joninsky opened this issue Mar 28, 2019 · 8 comments
Open

Whitelist localhost for development #5

joninsky opened this issue Mar 28, 2019 · 8 comments

Comments

@joninsky
Copy link

Embedding URL's don't work on local host for development. This is annoying because I can't test locally. I have to push to our development URL and wait for cloudformation to get around to refreshing the cache. Any recommendations?

@ajkulkarni
Copy link
Contributor

Hi joninsky, we have no official recommendations, but as a developer I have used this in the past:

https://ngrok.com/ - helps to convert your server to https + assigns a temporary domain (which you can whitelist in QuickSight)

There are also some other blog posts which help you run the localhost server on https:

[1] https://medium.freecodecamp.org/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec
[2] https://codeburst.io/running-local-development-server-on-https-c3f80197ac4f

The requirements in QuickSight for whitelisting are:

  1. You should have a domain name or ip address for your server
  2. It should use https

@joninsky
Copy link
Author

Thanks you for the links! I'll check them out.

@namnh06
Copy link

namnh06 commented Jun 19, 2019

I'm using windows 10 and follow this article to grant https in my localhost : https://medium.com/@richardr39/using-angular-cli-to-serve-over-https-locally-70dab07417c8

But, when I add https://localhost domain to QuickSight, they said that

This Domain is not supported. QuickSight dashboards can only be embedded in valid https domains.

I thought I have to create a fake domain in host file to fake it.

@cherukum-Amazon
Copy link
Contributor

You can use the IP address of the local host with the port number to whitelist the domain and access the URL with your IP address and port number

@cmckni3
Copy link

cmckni3 commented Aug 13, 2019

I had to add a host to my hosts file and run my Angular app using ng serve --ssl --host my-app.localhost

@mayunike
Copy link

mayunike commented May 22, 2020

@ajkulkarni i installed ngrok and was able to satisfy https, validdomain checks. But when i try to load the url in a <iframe>I still gets "us-east-1.quicksight.aws.amazon.com refused to connect." error. any idea how to solve this?
browser: chrome

@xwu247
Copy link

xwu247 commented Jun 30, 2020

@mayunike Hi, I'm encountering the same issue here, did you figure out how to solve such issues? Thanks

@Grace-Dmello
Copy link

Do we have support for local development?

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

No branches or pull requests

8 participants