Code Monkey home page Code Monkey logo

Comments (4)

jas- avatar jas- commented on May 16, 2024

Yes. The port in this case tells the browser that http://www.duo.sallespro.com.br:3000 & http://www.duo.sallespro.com.br do not reside in the same origin (See same origin restrictions)

You should only need to set the following header in the responses from http://www.duo.sallespro.com.br:3000 for any request containing the preflight cors request OPTIONS type : res.setHeader('Access-Control-Allow-Origin'', 'www.duo.sallespro.com.br')

from oauth2orize.

jaredhanson avatar jaredhanson commented on May 16, 2024

Thanks @jas for the reply! You'll need to enable CORS on your server to support this (see connect-cors). As always, please be aware of any security concerns if you choose to do this.

from oauth2orize.

jas- avatar jas- commented on May 16, 2024

No worries @jaredhanson, hope it helped @sallespromanager.

from oauth2orize.

sallespromanager avatar sallespromanager commented on May 16, 2024

hi @jas & @ @jaredhanson,

thank you for your initiatives building this code and the concerns.

what has really been helpful was to go deeper into the ( not so easy ) Oauth flows & mainly this repo with a very complete example.

https://github.com/FrankHassanabad/Oauth2orizeRecipes

i suggest to include in the wiki / readme files to have people jump start it.

the confusion is on which parameters should be included in the headers / in the req. parameters, and so forth...

from oauth2orize.

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.