Base solution for your next web application
Open Closed

Firefox/Postman - 401 Unauthorized #6907


User avatar
0
mgarcia created

Hi!

I have a site running on app services in azure, I just noticed a problem that is giving me firefox right now. So I tried to replicate it in PostMan and got the same response 401 unauthorized.

So let see if you can help me because on Chrome everything is working ok.

I make an auth token request

then I copied the access token to post request to create an order.

At first I though it was an CORS problem, but everything works ok in Chrome on productive enviroment.

I event tried this using Swagger, so I logged in, tried the method on swagger and everything works fine. Copy the same access token and tried on postman but got the same error:

Postman:

Do you have an idea why is this happening?

thx so much.


10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Are you logging in to a host or a tenant account?

  • User Avatar
    0
    mgarcia created

    The user was logged in host.

  • User Avatar
    0
    maliming created
    Support Team

    @mgarcia Can I send your app url and test account to my mailbox? I want to try. [email protected]

  • User Avatar
    0
    cangunaydin created

    Any solution? i have the same problem.

  • User Avatar
    0
    maliming created
    Support Team

    The problem with mgarcia is that he uses load balancing. Deploy back-end applications on multiple servers. Is your situation similar to him?

  • User Avatar
    0
    cangunaydin created

    No i have deployed it to one server. But there are multiple aspnetzero apps running on the same server (different projects) can it be related with that? They run on the same iis server.

  • User Avatar
    0
    maliming created
    Support Team

    Are you exactly the same as his problem? Firefox and postman don't work, and everything works fine under chrome?

  • User Avatar
    0
    cangunaydin created

    In my case it doesn't work when you use postman and it works if you use chrome or firefox. It can be network related probably firewall problem. I will post more when i know more.

  • User Avatar
    0
    maliming created
    Support Team

    What is the javascript code generated by Postman?

  • User Avatar
    0
    cangunaydin created

    Hello sorry for the late reply now my problem is solved, it was network related in my case after i change the network and try to do a post it worked so firewall was changing the headers or body i believe. It was working in chrome cause the page was on another server. Thank you for the help.