# SoundCloud mobile - Proxies

DevFeed: [SoundCloud mobile - Proxies](<https://devfeed.tech/articles/soundcloud-mobile-proxies-2151.md>)

Original publisher: [Read original article](<https://developers.soundcloud.com/blog//soundcloud-mobile-proxies>)

Published: 2011-08-22T00:00:00Z

Content type: article

Language: en

Sources: [SoundCloud Backstage](<https://devfeed.tech/sources/soundcloud-backstage-blog.md>)

Topics: [Web app](<https://devfeed.tech/topics/webapp.md>), [mobile-app-development](<https://devfeed.tech/topics/mobile-app-development.md>), [OAuth 2.0](<https://devfeed.tech/topics/oauth2.md>), [Pingora](<https://devfeed.tech/topics/pingora.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [actions](<https://devfeed.tech/tags/actions.md>), [allows](<https://devfeed.tech/tags/allows.md>), [also](<https://devfeed.tech/tags/also.md>), [alter](<https://devfeed.tech/tags/alter.md>), [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [application](<https://devfeed.tech/tags/application.md>), [apply](<https://devfeed.tech/tags/apply.md>), [applying](<https://devfeed.tech/tags/applying.md>), [article](<https://devfeed.tech/tags/article.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [consumer](<https://devfeed.tech/tags/consumer.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [dog](<https://devfeed.tech/tags/dog.md>), [food](<https://devfeed.tech/tags/food.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [version](<https://devfeed.tech/tags/version.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

SoundCloud's mobile app used a mountable proxy at /_api to make API requests from the same origin, avoiding CORS and same-origin limitations while preserving normal XHR behavior such as redirect handling. An initial Nginx proxy rewrote request paths and Location headers. When authenticated features required HTTPS and keeping the OAuth2 client secret server-side, the team extended its Node.js development server with a mounted proxy. Nginx fronted HAProxy and the Node processes; disabling Nginx proxy buffering addressed body handling, and a stream-related premature end on API 304 responses caused HAProxy 502 errors that required a workaround. The excerpt reports that both the Nginx and Node approaches worked well, with the proxy letting the team focus on authenticated app features.

## Source excerpt

The Problem The mobile version of SoundCloud is a consumer of our own API dog food. That decision was made with the intention to deploy a...