novuhq / novu

Open-Source Notification Platform. Embeddable Notification Center, E-mail, Push and Slack Integrations.
https://novu.co
Other
34.7k stars 3.56k forks source link

πŸ› Bug Report: Http headers issue #6644

Open drynau-gdhub opened 1 week ago

drynau-gdhub commented 1 week ago

πŸ“œ 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?

🏒 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

linear[bot] commented 1 week ago

NV-4456 πŸ› Bug Report: Http headers issue