Giter VIP home page Giter VIP logo

laravel-proxify's People

Contributors

cellcote avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

laravel-proxify's Issues

Project using Laravel-proxify as an example

Dear Cellcote.

I'm really whishing to use this package. I'm trying to make it up to date for Laravel 5.6. The problem is that ... I've got some questions and I can't find answers online about this topic. My goal is to create an SPA with that package.

Did you create an example package to test it at the time you modified it ? I'm facing a problem I can't solve ... And I'm stuck on this since a week now.

Best,
Quentin.

Laravel 5.2

Can this package be updated to support L5.2?

cellcote/laravel-proxify v0.1.1 requires laravel/framework 5.1.* -> no matching package found.

Documentation adjust

Hi,

It's needed to update the routes.php documentation

It's:

Route::any('proxify/{url?}', function($url) {
    return Proxify::makeRequest(Request::method(), Input::all(), $url);
})->where('url', '(.*)');

instead:

Route::any('proxify/{url?}', function($url) {
    return Proxify::makeRequest(Request::method(), Input::all());
})->where('url', '(.*)');

Proxy not forwarding errors

Hi!

I'm experiencing a problem implementing it with oauth2-server-laravel, here is the scenario :

I'm making a GET call to the proxy with appropriate params to obtain an access token (uri oauth/access_token).
The proxy forwards the request to the API in GET, but my API routes only contains a POST route to oauth/access_token. So a Laravel method not allowed exception is raised (debug on).
Instead of forwarding this exception, I get a fatal "Cannot use object of type GuzzleHttp\Stream\Stream as array" from the proxy.

This happens here in RequestManager :

        $content = $proxyResponse->getContent();
        $content = ProxyAux::addQueryValue($content, ProxyAux::COOKIE_URI, $this->uri);

ProxyAux::addQueryValue expects an array in first param, but a Guzzle stream is returned by getContent.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.