4.1.9 服务器源函数 server_origins_fn
潜在缺点:
io.origins((origin,callback)=>{
if(origin!=='https://foo.example.com'){
return callback('origin not allowed',false)
}
callback(null,true)
})Last updated
Was this helpful?
io.origins((origin,callback)=>{
if(origin!=='https://foo.example.com'){
return callback('origin not allowed',false)
}
callback(null,true)
})Last updated
Was this helpful?
Was this helpful?