Skip to content

Account deletion fails in Sandbox due to CORS #10994

@plabew

Description

@plabew

Description

Account deletion not working in Sandbox.
Link: https://sandbox.polar.sh/dashboard/account/preferences

Current Behavior

Attempting to delete the account displays a toast message: "A network error occurred Please try again later"

The browser console reveals a CORS policy block:

Access to fetch at '[https://sandbox-api.polar.sh/v1/users/me](https://sandbox-api.polar.sh/v1/users/me)' from origin '[https://sandbox.polar.sh](https://sandbox.polar.sh)' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
DELETE [https://sandbox-api.polar.sh/v1/users/me](https://sandbox-api.polar.sh/v1/users/me) net::ERR_FAILED 500 (Internal Server Error)

Expected Behavior

The account should be deleted successfully.

Screenshots

N/A

Environment:

  • Operating System: macOS
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions