Try our conversational search powered by Generative AI!

Service API: GET requests returns 401 Unauthorized, POST requests work fine


I am using the Service API for importing a product catalog (nodes, products, variants, images).

On my dev environment all requests work fine.

On the staging environment all the GET requests return 401 Unauthorized, but the POST requests go through.

However, copying the url, payload and token from a debug session and executing the same GET request from Postman is successfull...

What could be wrong?

I have checked that the Administrators group have both ReadAccess and WriteAccess for EPiServerServiceApi in tblUserPermission

Mar 09, 2020 10:34

Solved by using HTTPS

(we did have episerver:serviceapi:requiressl set to "false")

Mar 09, 2020 14:23
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.