---
sourceDocument: Xanadu Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/application-development

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Use a proxy server with ui-component extension

# Use a proxy server with ui-component extension {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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](https://servicenow-prod.fluidtopics.net/7fwEmY7ytgAe_M1H8nFU8Q "Prepare your local environment by installing the Node.js JavaScript runtime environment, Node package manager (npm), and the ui-component extension. These tools enable you to develop and build components locally and deploy them to your instance.").

## 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.  
   {#use-proxy__table_enm_jlt_tkb__entry__2}

   | Parameter | Description |
   |-|-|
   | development.proxy.headers | Headers to append to your proxied request. |
   | development.proxy.headers.Authorization | Authentication header to add to the proxied request. Enter your Base 64-encoded username:password here. |
   | development.proxy.origin | Host to open a proxy with (your instance host address). |
   | development.proxy.port | The port the proxy runs on. |
   | development.proxy.proxies | URL glob patterns to pass to the proxy server. |
   [ ]

   {#use-proxy__table_enm_jlt_tkb}
3. Save the file.

## What to do next

[Develop a component](https://servicenow-prod.fluidtopics.net/z4VmUhpo6wwJBnwpQpN7VQ "Add your component code and test it using a local development server.").
**Related concepts**   

* [Create custom components using ServiceNow CLI](https://servicenow-prod.fluidtopics.net/KY_xJD~3ToQMolg1ly161g "Develop custom components using the Next Experience UI Framework and the ui-component extension.")

