OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums OroCRM OroCRM – Installation/Technical Issues or Problems [OroCRM 3.1.6] Admin panel – 401 error on api/rest/latest/navigationitems/pinbar

This topic contains 24 replies, has 6 voices, and was last updated by  Rick 2 months ago.

  • Creator
    Topic
  • #38938

    lsimonin2
    Participant

    Hi,

    I installed OroCRM in local with docker. All is good I can access to the admin panel, but I got an reload infinitily in cause an 401 Unauthorized error on the url api/rest/latest/navigationitems/pinbar

    Someone can help me ?

    Thank you :)

Viewing 9 replies - 16 through 24 (of 24 total)
  • Author
    Replies
  • #39086
    Ilya Antypenko
    Ilya Antypenko
    Participant

    Just checked again and it works for me.

    Did you restart you nginx container after the change?

    > if I wait 10sec on the dashboard, the page reload on the pinbar call
    Please check the cookie set by https://orocrm.local it should start from Set-Cookie: https-_csrf=

    and check request headers to pinbar URL. It should contain X-CSRF-Header header.

    #39088

    admin48
    Participant

    Do you mind telling how did you fix it? Thanks.

    #39090

    lsimonin2
    Participant

    Hi Ilya,

    My bad ! I forgot to remove cookies in my navigator, now it’s works thank you :)

    #39940

    robversluis
    Participant

    I have the same issue. I am using a Docker php apache container.
    Can somebody give me a solution for apache?

    #39941
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Rob,
    You can use the recommended configuration from the Web server Configuration Guide.

    #39942

    robversluis
    Participant

    Thank you Andrey. I do have a similar configuration.
    I am running the container is a Kubernetes cluster with an ingress loadbalancer.
    I think the problem is caused by ssl offloading. Can you give me a clue where to look?

    #39950
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Make sure “mod_ssl” is enabled.

    Here is an example of the configuration used by our developers locally for Apache2 with SSL enabled:

    #39951

    robversluis
    Participant

    Sorry Andrey I like use the reverse proxy and stick to the SSL offloading. Is there no way to tell to the ORO platform?

    #40215

    Rick
    Participant

    We had the same Problem using SSL offloading with AWS ElasticLoadbalancer.
    Solution was to set the LoadBalancer as a TrustedProxy and set $_SERVER[‘HTTPS’] manually to any value (this is important to get https-_csrf form token instead of _csrf).

    index.php:

Viewing 9 replies - 16 through 24 (of 24 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No