Skip to content

🐛 Bug Report: Http headers issue #6644

@drynau-gdhub

Description

@drynau-gdhub

📜 Description

I have

  1. novu service v0.24.0 (https://novu-api.some-domain.com)
  2. my next.js application (https://staging.app.some-domain.com)

I use @novu/react and Inbox for showing user notifications from novu service (1).
And get a CORS error

Access to fetch at 'https://novu-api.some-domain.com/v1/inbox/session' from origin 'https://staging.app.some-domain.com' has been blocked by CORS policy: Request header field novu-api-version is not allowed by Access-Control-Allow-Headers in preflight response.

👟 Reproduction steps

  1. Deploy novu with Docker on AWS EC2.
  2. Deploy my next.js application on AWS ECS.
  3. Try show notification in the app. The app is showing widget.
  4. I have the error on an endpoint: novu-api.some-domain.com/v1/inbox/session. Other API endpoints are working correctly.

👍 Expected behavior

Return OK on novu-api.some-domain.com/v1/inbox/session and show my notifications.

👎 Actual Behavior with Screenshots

image

Novu version

0.23.0, 0.24.0

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions