CORS Error in Graph Explorer when using SSH Tunnel #1601
-
|
I am using Neptune through a SSH tunnel and does not have IAM enabled. When I use graph explorer, I get CORS error, any solution to that? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
Reference: #127 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for moving this to a discussion. Do you have the proxy server enabled on the connection? Even though you don't use IAM that might be required for Neptune to work. Also, when I access Neptune using SSH I have to modify my hosts file to ensure the traffic flows. Do you have that setup? If you need me to I can try to find the setup instructions. |
Beta Was this translation helpful? Give feedback.
-
|
I am getting below error. I believe, I can't directly use neptune's address as it is in private VPC. So I did SSH tunneling, and ran graph-explorer in a docker. |
Beta Was this translation helpful? Give feedback.
-
|
Okay, I will use it with node. |
Beta Was this translation helpful? Give feedback.
-
|
Steps to connect Amazon Neptune (private VPC access via SSH tunnel) to Neptune Graph Explorer running in Docker on macOS:
ssh -N \
-i <key.pem> \
-L 8182:<neptune-host.cluster.neptune.amazonaws.com>:8182 \
ec2-user@<bastion-host>Verify the tunnel: curl -k https://localhost:8182/statusExpected response: Neptune status JSON.
docker run -d \
--platform linux/amd64 \
--name neptune-graph-explorer \
-p 8888:80 \
--add-host=<neptune-host.cluster.neptune.amazonaws.com>:host-gateway \
public.ecr.aws/neptune/graph-explorer:latestWhy
|
Beta Was this translation helpful? Give feedback.
Steps to connect Amazon Neptune (private VPC access via SSH tunnel) to Neptune Graph Explorer running in Docker on macOS:
Verify the tunnel:
Expected response: Neptune status JSON.
Why
--add-hostis ne…