Drupal_Web_Proxy

Component ID

2401249

Component name

Drupal_Web_Proxy

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module is based on cowboy's (php-simple-proxy) source code that basically implements a proxy API that enables javascript code to access data across domain other than the domain of the script's parent document.

When this module is enabled, it add a

_proxy

path to drupal.

To make a request to a domain, simply access http://yourdomain/_proxy/http://targetdomain/path/to/resource

Both GET and POST request are supported.

Currently, the only control you have over request is permissions.
To allow a drupal role to use this API, simple enable

Access the web proxy service

permission for that role

Future releases, will enable you determine the domains that can be accessed through a configuration form.