- Requirements:
- Node.js
- npm
- Install required dependencies:
npm install
- Run the service:
npm start
/UserSync/uid
This endpoint takes u_id from query params and sends a response with cookie (b_id) attached in the header. This cookie has domain set to admaru.net and maxAge to 31556926 (1 year).
/UserSync/sync
This endpoint redirects to the dsp cookie generation endpoint which should redirect to /UserSync/uid with u_id in the query params. This endpoint's purpose is to allow changing dsp urls without rebuilding prebid.js
/testdsp
Used for testing purposes
To turn on HTTPS server, you need to specify the cert path in .env file (by default this line is commented).
- request with cookie
- cookie on
admaru.netdomain

