sincraianul / generator-angular-material-fullstack

Yeoman generator for Angular with Angular Material and an Express server
68 stars 22 forks source link

Restrict access origin #11

Open GilVieira opened 7 years ago

GilVieira commented 7 years ago

Hello, i am trying unsuccessfully to restrict access to enpoints only to my domain, i sought examples of expression, but only found as free full access and not restrict, tried res.header('Access-Control-Allow-Origin', 'myDomain'), but it did not work, could someone help me?