aws / aws/graph-explorer

[Bug] CORS issue with manifest.json file in Neptune Notebook

Open
#580 0 comments 0 reactions 0 assignees View on GitHub
infrastructure reliability
Dominant language
TypeScript
Stars
481
Forks
108
Avg merge
6d 8h
Merged PRs (30d)
5

Description

## Description

I see error in the browser console for a CORS error accessing the `manifest.json` file.

> Access to manifest at 'https://{region}.console.aws.amazon.com/sagemaker/home?region={region}¬ebookState={notebook_state}/notebook-instances/openNotebook/{notebook_name}' (redirected from 'https://{notebook_name}.notebook.{region}.sagemaker.aws/proxy/9250/explorer/manifest.json') from origin 'https://{notebook_name}.notebook.{region}.sagemaker.aws' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I noticed it seems to be redirected from the URL I expected to some other URL. This doesn't happen when I execute a fetch directly for the manifest file. Perhaps this occurs because the manifest is loaded through a relative URL rather than absolute.

## Environment

- OS: macOS 14.6.1
- Browser: Arc
- Graph Explorer Version: 1.10.0
- Graph Database & Version: Amazon Neptune 1.3.2.1

## Steps to Reproduce

1. Open Graph Explorer from an Amazon Neptune Notebook
2. Open the browser developer console
3. Switch to the console tab or network tab to see the errors

## Expected Behavior

No CORS error should occurr

---

> [!IMPORTANT]
> If you are interested in working on this issue or have submitted
> a pull request, please leave a comment.

> [!TIP]
> Please use a 👍 reaction to provide a +1/vote.
>
> This helps the community and maintainers prioritize this request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.