Skip to content

prevent CORS origin error in localhost ( next js) #4030

@nightwolf-041

Description

@nightwolf-041

hi sir,
i have this CORS error in my localhost when i start next js project :

Access to fetch at 'https://o1023688.ingest.sentry.io/api/5989958/envelope/?sentry_key=b34c74d6d5c44074996dc09add9ceae6&sentry_version=7' from origin 'http://localhost:5000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

how can i prevent this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions