DEV Community

[Comment from a deleted post]
 
a7u profile image
A7U

True. But I have hardcoded in the post just to give an example, in my app it's not hardcoded but in a config.json called "base_url" which can be changed from the UI.

I think both the example I have given and CORS would be good, because it's never too much for security 😀