Use a proxy server with the Now CLI to define a separate data source for your component. When using a proxy server, the instance forwards Now CLI requests to the proxy server.

Before you begin

Set up your environment.

Procedure

  1. In your component directory, open the now-cli.json file.
  2. Update the proxy object.
    {
    	development: {		
    		proxy: {
    			headers: {
    				Authorization: "Basic <username:password>"
    			},
    			origin: "http://myinstance.servicenow.com",
    			port: 3000,
    			proxies: []
    		}
    	}
    }
    

    Update the following parameters with your proxy information.

  3. Save the file.

What to do next

Develop a component.