If you are not using Express but another framework or no framework at all, you might need to handle CORS manually or use specific middleware. The general idea is similar: set appropriate headers in your HTTP responses.
Using CORS in Other Frameworks