# Create user webhook which should send request to my backend throw an error

**URL:** <https://community.auth0.com/t/create-user-webhook-which-should-send-request-to-my-backend-throw-an-error/41865>\
**Category:** Get Help\
**Tags:** webhooks, cors\
**Created:** [April 27, 2020, 3:59pm UTC](https://community.auth0.com/t/create-user-webhook-which-should-send-request-to-my-backend-throw-an-error/41865 "2020-04-27T15:59:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![admindigital](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/admindigital/32/12951_2.png) [@admindigital](https://community.auth0.com/u/admindigital)\
**Post date:** [April 27, 2020, 3:59pm UTC](https://community.auth0.com/t/create-user-webhook-which-should-send-request-to-my-backend-throw-an-error/41865/1 "2020-04-27T15:59:35Z")

</div>

```auto
const request = require('request');

module.exports = function (user, context, cb) {
  console.log('webhook was started for ' + user.email)
  request.post({ 
  url: 'http://35.180.70.70/webhook', 
  body: {
  "externalId": user.id,
  "firstName": user.username,
  "email": user.email,
  "phone": user.phoneNumber
  },
  json: true,
  headers : {
      "content-type": "application/json"
  }, 
  
  function(error, response, body) { 
    console.log('-----', user);
    console.log(context);
    cb(error, response) 
}})}

```

I wrote webhook for “Create user” case  
But, when I create a user, I see:  
Access to XMLHttpRequest at ‘[https://zeway.eu8.webtask.io/user-registration-hook/](https://zeway.eu8.webtask.io/user-registration-hook/)’ from origin ‘[https://manage.auth0.com](https://manage.auth0.com)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.  
error  
When I send the same request via Postman → works fine
