Skip to content

[Bug]: 403 Forbidden error when uploading profile picture (CloudFront WAF Block) #9896

@toanbui-tech

Description

@toanbui-tech

What is the URL where the issue is happening

https://roadmap.sh/account/update-profile

What browsers are you seeing the problem on?

Chrome

Describe the Bug

I encountered a 403 Forbidden error while trying to update my profile picture on the /account/update-profile page. The request is being blocked by CloudFront.

Steps to Reproduce:

  1. Go to https://roadmap.sh/account/update-profile.
  2. Click on the profile picture upload section.
  3. Select an image file to upload.
  4. Observe the network request in DevTools.

Expected Behavior:

  • The profile picture should be uploaded successfully, and the user profile should be updated.

Actual Behavior:

Technical Details:

Request URL: https://roadmap.sh/api/v1-upload-profile-picture
Request Method: POST
Status Code: 403 Forbidden
Server: CloudFront
Response Content-Type: text/html
Request ID: 7mii4ywjChPY-i0RURaWKUhaxCcNa3v5D51ITsG7z4Lzmi165nPwgg== (as seen in the screenshot)

Screenshots:

Image Image

Output from browser console (if any)

No response

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions