2017 © Pedro Peláez
 

symfony-bundle jscrossdomain-bundle

Js cross domain bundle for Symfony2

image

funddy/jscrossdomain-bundle

Js cross domain bundle for Symfony2

  • Sunday, June 30, 2013
  • by funddy
  • Repository
  • 2 Watchers
  • 3 Stars
  • 222 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FunddyJsCrossDomainBundle

Build Status, (*1)

This bundle enables you to make cross domain requests with Javascript., (*2)

Setup and Configuration

Add the following to your composer.json file:, (*3)

{
    "require": {
        "funddy/jscrossdomain-bundle": "1.0.*"
    }
}

Update the vendor libraries:, (*4)

curl -s http://getcomposer.org/installer | php
php composer.phar install

Register the Bundle FunddyJsCrossDomainBundle in app/AppKernel.php., (*5)

// ...
public function registerBundles()
{
    $bundles = array(
        // ...
        new Funddy\Bundle\JsCrossDomainBundle\FunddyJsCrossDomainBundle()
        // ...
    );
    // ...
}

Include cross domain route at app/config/routing.yml, (*6)

cross_domain:
    resource: "@FunddyJsCrossDomainBundle/Resources/config/routing.yml"

Usage

Configure allowed cross domain URLs at app/config/config.yml, (*7)

funddy_js_cross_domain:
    allowed:
        - http://graph.facebook.com/?ids=

Make cross domain request, (*8)

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<script src="{{ asset('bundles/funddyjscrossdomain/js/lib/funddycrossdomain.js') }}"></script>
<script>
    var cd = new FUNDDY.CrossDomain($);
    cd.get("http://graph.facebook.com/?ids=https://funddy.com").done(function(response) {
        console.log(response);
    });
</script>

The Versions

30/06 2013

dev-master

9999999-dev https://github.com/funddy/jscrossdomain-bundle

Js cross domain bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

ajax cross domain