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
constcors=require('cors')constapp=express()constcorsOptions={origin: function(origin,callback){// db.loadOrigins is an example call to load// a list of origins from a backing databasedb.loadOrigins(function(error,origins){callback(error,origins)})}}
The text was updated successfully, but these errors were encountered:
Could we have a similar option for CORS with
moleculer-web
as Express works withcors
package?Refer https://expressjs.com/en/resources/middleware/cors.html#configuring-cors-w-dynamic-origin
The text was updated successfully, but these errors were encountered: