-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add to basket api returns 403 forbidden when user is logged in #320
Comments
I think you need to take a look at precisely what is being returned, there will be more information there. |
could not find any error message associated with it other than the status(forbidden), how do you propose I check what was returned? |
I console.logged the response and found this line. |
this is my middleware settings: |
The 'oscarapi.middleware.HeaderSessionMiddleware' expects you to send a 'Session-Id' header in the request to manage the session. The format of which is given in the documentation of the middleware. |
the add to basket api works just fine with an anonymous user but immediately the user is logged in, it starts returning 403 forbidden. I have 'oscarapi.middleware.ApiBasketMiddleWare','oscarapi.middleware.HeaderSessionMiddleware', in my middleware
The text was updated successfully, but these errors were encountered: