Giter Club home page Giter Club logo

Comments (8)

lmignon avatar lmignon commented on July 18, 2024

@jeanpaulrobineau
Thank you for the report. Nevertheless I don't have safari on my ubuntu machine. It's therefore not possible to me to fix this issue. You must be sure that safari allows cross domain request from JS (CORS ). You should also check that all the headers into the cross domain request are allowed by your configuration of your alfresco server (http://alfodoo.org/guides/install.html#enable-cors-in-alfresco-5-x).

Regards,

lmi

from alfodoo.

JosDeGraeve avatar JosDeGraeve commented on July 18, 2024

Hi,

I have been investigating on this issue.

Both chrome and safari are sending the same origin header, the only difference between both is how they react to the

What happens with chrome:

  1. an ajax request is sent without an authorization header to alfresco
  2. alfresco returns status 401 with a json error message payload
  3. Chrome displays a popup to the user, requesting for the password
  4. an ajax request is sent again with the proper authorization header to alfresco
  5. alfresco returns the requested json payload.
  6. success

What happens with safari:

  1. an ajax request is sent without an authorization header to alfresco
  2. alfresco returns status 401 with a json error message payload
  3. a second ajax request is sent without an authorization header to alfresco
  4. alfresco returns status 401 with a json error message payload
  5. Safari displays the error message from the json error payload "...Authentication failed...", but does not prompt the user for a password.
  6. failure

I have not been able to figure out why safari does things differently in step 3.
I can't figure out if this is an issue with the cmis.js or superagent.js javascript lib.

any ideas ?

from alfodoo.

kgoderis avatar kgoderis commented on July 18, 2024

@lmignon ping....

from alfodoo.

kgoderis avatar kgoderis commented on July 18, 2024

@lmignon FYI, on iOS neither Safari, Firefox or Chrome is working, but resulting in an authentication failure.

from alfodoo.

lmignon avatar lmignon commented on July 18, 2024

@kgoderis I'll try to find a MAC to investigate what's wrong on IOS.

from alfodoo.

kgoderis avatar kgoderis commented on July 18, 2024

@lmignon Ping.

from alfodoo.

dreispt avatar dreispt commented on July 18, 2024

@lmignon FYI Safari is also available on Windows.

from alfodoo.

github-actions avatar github-actions commented on July 18, 2024

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

from alfodoo.

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.