Giter Site home page Giter Site logo

Conflict with dingo/api about laravel-cors HOT 10 CLOSED

jloosli avatar jloosli commented on May 7, 2024
Conflict with dingo/api

from laravel-cors.

Comments (10)

kcalliauw avatar kcalliauw commented on May 7, 2024 1

This pull request fixes the issue: #64

from laravel-cors.

eduacostam avatar eduacostam commented on May 7, 2024

Just run into this issue as well, also using dingo/api.
Your fix works for me. Thanks!

from laravel-cors.

TUNER88 avatar TUNER88 commented on May 7, 2024

I have the same problem.

@jloosli thx for your fix!
@barryvdh are there any sideeffects on this workaround?

from laravel-cors.

jloosli avatar jloosli commented on May 7, 2024

For what it's worth, I opened the same issue up at dingo/api#576

from laravel-cors.

nicolas-t avatar nicolas-t commented on May 7, 2024

worked for me (:

from laravel-cors.

kcalliauw avatar kcalliauw commented on May 7, 2024

The PR was tagged, so a composer update should do the trick.

from laravel-cors.

jloosli avatar jloosli commented on May 7, 2024

Seems to work for me.

from laravel-cors.

tralves avatar tralves commented on May 7, 2024

This problem fixes for Laravel, but not for Lumen. I couldn't find a solution.

My workaround was to add \Barryvdh\Cors\HandlePreflight::class to the list of global middlewares.

from laravel-cors.

NightravenJames avatar NightravenJames commented on May 7, 2024

Failed to load http://127.0.0.1/8000/api/auth/login/: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8012' is therefore not allowed access.
angular.js:12808 {"method":"POST","url":"http://127.0.0.1/8000/api/auth/login/","message":null,"status":-1} critical true

from laravel-cors.

NightravenJames avatar NightravenJames commented on May 7, 2024

Thats from my angular app , am using the laravel dingo boiler plate none of the above fixes have worked in fixing the preflight issue PLEASE HELP

from laravel-cors.

Related Issues (20)

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.