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

Added configuration for displaying images #75

Merged
merged 1 commit into from
Jan 11, 2025
Merged

Added configuration for displaying images #75

merged 1 commit into from
Jan 11, 2025

Conversation

dalvarez2596
Copy link
Owner

Description

This PR is focus on lesson 117, here we setup the aws cors using this a JSON like this one :

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "http://www.example1.com"
        ],
        "ExposeHeaders": []
    },
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "http://www.example2.com"
        ],
        "ExposeHeaders": []
    },
    {
        "AllowedHeaders": [],
        "AllowedMethods": [
            "GET"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]

We also need to install imagemagick to make it appear locally cause if we don't install it will display the following error:
Screenshot 2025-01-11 at 12 56 34 AM

So after doing the configurations on AWS it works as expected.

@dalvarez2596 dalvarez2596 merged commit ece1310 into main Jan 11, 2025
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant