You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
One of the basic features of APIs is to be able to work nicely with CORS. This is not possible with Server.js, and instead you need to either install a third party package or do it manually.
Describe the solution you'd like
Have the cors package be a part of the core. It should be disabled by default, but easily be able to do:
Describe alternatives you've considered
Using the cors package; it'd be nice to have it in the core so we don't need to install it each time.
Additional context
Since server.js is supposed to work nicely both as an API server and as a renderer (traditional) server, this makes making an API easier.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
One of the basic features of APIs is to be able to work nicely with CORS. This is not possible with Server.js, and instead you need to either install a third party package or do it manually.
Describe the solution you'd like
Have the
cors
package be a part of the core. It should be disabled by default, but easily be able to do:Describe alternatives you've considered
Using the
cors
package; it'd be nice to have it in the core so we don't need to install it each time.Additional context
Since server.js is supposed to work nicely both as an API server and as a renderer (traditional) server, this makes making an API easier.
The text was updated successfully, but these errors were encountered: