Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix retrieve resources from another domain #2

Open
Paaaaak opened this issue Aug 30, 2023 · 1 comment
Open

Fix retrieve resources from another domain #2

Paaaaak opened this issue Aug 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Paaaaak
Copy link
Owner

Paaaaak commented Aug 30, 2023

Tried to get certain user's profile image from backend server at port 1035, but the error occured below.
image

@Paaaaak Paaaaak added the bug Something isn't working label Aug 30, 2023
@Paaaaak Paaaaak self-assigned this Aug 30, 2023
@Paaaaak
Copy link
Owner Author

Paaaaak commented Aug 30, 2023

Added index.js
app.use('/profile-images', express.static(path.join(__dirname, 'profile-images')));

The endpoint to retireve images from backend server was missed.

After that, I was able to get corresponding image file by sending a request to the URL, 'http://localhost:1035/profile-images/image-64c67c436f8bd303cc470f6a'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant