CyberPanel Community

How to Enable CORS from Nodejs server

Sh
Shivam #1

hello guys hope you all are doing great,
i have deployed my node server through cyberpanel but when i am accessing it through live website its showing cors error
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at…
i have enabled cors
its not showing error when i am accessing it from my localhost but when i am accessing it through live website its showing cors error
I am not able to find out what might be the problem

3 replies
Sh
Shivam #3

@josephgodwinke,thanks for answering but i have enabled cors, what i think the problem is that
my node server is hosted on my cyberpanel:PORT, and my cyberpanel doesnot have a ssl yet
so how can i enable ssl in my cyberpanel, i think that might solve my problem

Sign in to reply