N
Novu6mo ago
Kh. M-S.

CORS on VPS

I deployed Novu on VPS. When I try to register through web app I get CORS error. In network and console I get these (two images)
No description
No description
8 Replies
Ask Inkeep
Ask Inkeep6mo ago
Hi @Kh. M-S., I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Others * React Get Started * API Overview * SDKs & Client Libraries -----------------------------
Ask Inkeep
Ask Inkeep6mo ago
Answer The CORS error you're encountering typically occurs because Novu's API is intended to be used from the server side. When you try to access it from a client-side application, such as a web browser, it will not allow requests due to security reasons (1) . To resolve this, ensure that all API requests to Novu are being made from your server-side code. If you need to interact with the API from the client side, you should use Novu's client-side libraries instead, which are designed to handle such interactions properly. For further details on handling CORS and configuring your server correctly, you can refer to Novu's official API documentation. If the issue persists, double-check your server and web application configuration to ensure they align with Novu’s requirements and best practices. Make sure that your server is correctly setting the appropriate CORS headers if it's acting as a middleman between your web app and Novu's API.
Ask Inkeep
Ask Inkeep6mo ago
Got it. Tagging @Support for additional help.
Kh. M-S.
Kh. M-S.OP6mo ago
I do not understand. So when I deployed Novu localy I could go to Web APP (localhost:4200) and use it. Now when I deploy it on the VPS I can not use Web APP (ip-address:4200)?
Novu_Bot
Novu_Bot6mo ago
@Kh. M-S., you just advanced to level 4!
Pawan Jain
Pawan Jain6mo ago
@Kh. M-S. It a humle request to have one support post for same issue 🙏🏻. you have created more than 4 posts for similar issue
Kh. M-S.
Kh. M-S.OP6mo ago
@Pawan Jain I am sorry! It is my second post about CORS. And I will not create another one. My apologies! I hope I will find solution here
Want results from more Discord servers?
Add your server