amazon-quicksight-embedding-sample icon indicating copy to clipboard operation
amazon-quicksight-embedding-sample copied to clipboard

Whitelist localhost for development

Open joninsky opened this issue 5 years ago • 8 comments

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?

joninsky avatar Mar 28 '19 22:03 joninsky

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

ajkulkarni avatar Mar 28 '19 22:03 ajkulkarni

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

joninsky avatar Mar 28 '19 22:03 joninsky

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.

namnh06 avatar Jun 19 '19 07:06 namnh06

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

cherukum-Amazon avatar Jul 26 '19 17:07 cherukum-Amazon

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

cmckni3 avatar Aug 13 '19 02:08 cmckni3

@ajkulkarni i installed ngrok and was able to satisfy https, validdomain checks. But when i try to load the url in a

mayunike avatar May 22 '20 15:05 mayunike

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

xwu247 avatar Jun 30 '20 05:06 xwu247

Do we have support for local development?

Grace-Dmello avatar Sep 21 '20 07:09 Grace-Dmello