Giter Club home page Giter Club logo

Comments (3)

aliaksander-samuseu avatar aliaksander-samuseu commented on July 19, 2024

@jschristie

Hi, Joseph. Have sent you a link to some CORS configuration examples. But also please note there are issues with the filter in CE 3.x atm. Reports are below:

Due to this we may suggest some way to get around this limitations. I used next rude hack to make my test setup using implicit flow to work:

        <Location /oxauth/seam/resource/restv1/oxauth/userinfo>
                ProxyPass http://localhost:8081/oxauth/seam/resource/restv1/oxauth/userinfo retry=5 disablereuse=On
                ProxyPassReverse http://localhost:8081/oxauth/seam/resource/restv1/oxauth/userinfo
                Header set Access-Control-Allow-Origin "*"
                Header set Access-Control-Allow-Headers "Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers,Authorization"
                Order allow,deny
                Allow from all
        </Location>

I.e. I just explicitly set list of headers allowed to be used in CORS-aware requests in Apache's config, so it will be added to all responses from userinfo. Not very elegant, but it worked for me. For 3.1 packages I believe it will be fixed before official release. It also works fine in 2.4.4 without any hacks.

from docs-ce-prod.

jschristie avatar jschristie commented on July 19, 2024

CORS has been included in 3.0.2 docs

CORS

from docs-ce-prod.

willow9886 avatar willow9886 commented on July 19, 2024

And CORS is included in 3.1.1 docs: https://gluu.org/docs/ce/3.1.1/admin-guide/cors/

from docs-ce-prod.

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.