N
Novu2mo ago
pragesh p

novu issue

@all i use self hosting in ubuntu server but we hit the my domain url/auth/login we are getting cors error how can we solve this?
9 Replies
Ask Inkeep
Ask Inkeep2mo ago
Hi @pragesh p, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Object Storage (S3, Blob, GCS) * How To Integrate Segment With Novu * Run Novu in local machine * Others -----------------------------
Ask Inkeep
Ask Inkeep2mo ago
Answer To address the CORS error when using Novu's API from the browser, it's essential to understand that Novu's APIs are designed for server-side use. Attempting to use them directly in a client-side application can lead to CORS errors because of security and integrity purposes. For client-side interactions, consider using Novu's client-side libraries designed for fetching in-app notifications without encountering CORS issues (1) (2) . For a detailed solution or adjustments, please check the documentation or configurations related to the server-side setup and ensure proper handling of CORS policies if applicable on your server or proxy configuration.
Ask Inkeep
Ask Inkeep2mo ago
Got it. Tagging @Support for additional help.
pragesh p
pragesh p2mo ago
@Support
Pawan Jain
Pawan Jain2mo ago
@pragesh p Checkout self hosting guide video on our documentation to learn on how to change HOST_NAME value with yours ip/dns
pragesh p
pragesh p2mo ago
i follow this video but we are getting connection timeout and cors issue i already set reverse proxy in nginx and also change hostname in .env
pragesh p
pragesh p2mo ago
No description
Novu_Bot
Novu_Bot2mo ago
@pragesh p, you just advanced to level 1!
pragesh p
pragesh p2mo ago
could you assist me what's a next? @Pawan Jain @Novu_Bot