API Cors Error
I run it with postman successfully, but when I run it with react I get a cors error.
12 Replies
@korayaggul
Our API is configured to be used from server side envrironment.
As you are using in react which is client side, it is giving cors error.
checkout API overview docs
https://docs.novu.co/api-reference/overview
You can use any of our backend sdk as well
https://docs.novu.co/quickstarts/overview
https://docs.novu.co/sdks/introduction#server-side
ahh thank you, So, how can I see the content of the message I received here?
Is there anything else besides unseenCount?
I see you are using PopoverNotificationCenter, so when you clicks on the bell, notification center component will show all messages
You don't need to explicitly mention message like unseenCount
I want to write it in a special way and it will appear directly as a pop up, but I need the content of the notification I receive.
Wait we have something for this usecase
I am sharing doc link in a moment
https://docs.novu.co/notification-center/client/react/get-started#realtime-sockets
is this correct ?
thank you ❤️
Yes this should work.
Are you facing any issue?
No, I asked just to be sure, it works, thank you
@korayaggul, you just advanced to level 1!