403 error encountered when attempting to remove a product from the mini basket.
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
403 error encountered when attempting to remove a product from the mini basket.
Hi!
Removing a product item from mini basket by json
/jsonapi/basket?id=default&related=product&relatedid=0&_token=3gWii4rfC7E2iStRMZwXsENWX2RMzAtXBexKdzpY
causes a 403 error:
{"errors": [
{"title": "Not allowed for this resource"}]}
Any ideas how to fix this?
Version - 2023.10.x-dev
Integration - Laravel
System - Windows10
Removing a product item from mini basket by json
/jsonapi/basket?id=default&related=product&relatedid=0&_token=3gWii4rfC7E2iStRMZwXsENWX2RMzAtXBexKdzpY
causes a 403 error:
{"errors": [
{"title": "Not allowed for this resource"}]}
Any ideas how to fix this?
Version - 2023.10.x-dev
Integration - Laravel
System - Windows10
Re: 403 error encountered when attempting to remove a product from the mini basket.
What is the JSON request you've sent?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: 403 error encountered when attempting to remove a product from the mini basket.
This - /jsonapi/basket?id=default&related=product&relatedid=0&_token=3gWii4rfC7E2iStRMZwXsENWX2RMzAtXBexKdzpY
It is the default AI request to delete a product item from the minibasket. Despite the 403 mistake, the product item had been deleted on my local server, but had NOT been deleted on stage server - the same error. Actually I've recognized the error only when upploaded the project to the stage server.
It is the default AI request to delete a product item from the minibasket. Despite the 403 mistake, the product item had been deleted on my local server, but had NOT been deleted on stage server - the same error. Actually I've recognized the error only when upploaded the project to the stage server.
Re: 403 error encountered when attempting to remove a product from the mini basket.
... and the same issue when trying to delete a subcategory in the backend -
The request is the default one -
/admin/default/jsonadm/catalog?locale=uk&id=24&_token=TL4Hjd172lwAvo0ucfm1CFNaqkVORxaJk6AaiLys
The request is the default one -
/admin/default/jsonadm/catalog?locale=uk&id=24&_token=TL4Hjd172lwAvo0ucfm1CFNaqkVORxaJk6AaiLys
Re: 403 error encountered when attempting to remove a product from the mini basket.
Things to keep in mind:akropivko wrote: ↑16 Oct 2023, 17:03 This - /jsonapi/basket?id=default&related=product&relatedid=0&_token=3gWii4rfC7E2iStRMZwXsENWX2RMzAtXBexKdzpY
It is the default AI request to delete a product item from the minibasket. Despite the 403 mistake, the product item had been deleted on my local server, but had NOT been deleted on stage server - the same error. Actually I've recognized the error only when upploaded the project to the stage server.
- It must be an HTTP DELETE request (not GET or POST)
- The value of "relatedid" must be a valid position in the basket (you get valid URLs when you retrieve the basket)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: 403 error encountered when attempting to remove a product from the mini basket.
It looks like your web server denies DELETE requests due to its configuration.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star