amazon-quicksight-embedding-sample
amazon-quicksight-embedding-sample copied to clipboard
Whitelist localhost for development
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?
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:
- You should have a domain name or ip address for your server
- It should use https
Thanks you for the links! I'll check them out.
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.
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
I had to add a host to my hosts file and run my Angular app using ng serve --ssl --host my-app.localhost
@ajkulkarni i installed ngrok and was able to satisfy https, validdomain checks. But when i try to load the url in a
@mayunike Hi, I'm encountering the same issue here, did you figure out how to solve such issues? Thanks
Do we have support for local development?