A proxy task forwards incoming HTTP requests to a remote server and relays the response back to the client. From the perspective of the requesting application, the remote content appears to come fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CandyACE/webpublish/llms.txt
Use this file to discover all available pages before exploring further.
127.0.0.1:9090, not from the original server.
WebPublish adds CORS headers to every proxied response, making proxy tasks particularly useful for web development workflows where the browser would otherwise block cross-origin requests.
How it works
When a request arrives athttp://127.0.0.1:9090/{taskId}/{path}, WebPublish strips the task ID prefix and forwards the request to {target}/{path}, where {target} is the remote URL you configured. The remote response — including status code, headers, and body — is relayed back to the client.
URL format
tiles and the target is https://tile.openstreetmap.org, then:
Creating a proxy task
Enter the target URL
In the Path field, enter the full URL of the remote server you want to proxy to, for example
https://api.example.com or http://192.168.1.50:8080.The Path field stores the target URL for proxy tasks — not a local file path. Include the scheme (
http:// or https://) but do not include a trailing slash.Set the task ID and name
Enter a short ID for the local URL (for example,
remote-api). Requests to http://127.0.0.1:9090/remote-api/anything will be proxied to {target}/anything.Use cases
Bypass CORS in development
Browsers block requests to a different origin than the page’s own origin. A proxy task moves the request to the same origin as your development server:Access remote tile services locally
Point a mapping client at a local proxy URL to work with remote tile endpoints:Consolidate multiple upstream services
Create one proxy task per upstream service, each with a different ID. Your client application talks only to127.0.0.1:9090 and WebPublish routes to the appropriate backend.