Someone have any idea about why I'm getting 403 when I try delete one address using manage address ?
To set one address to Main is working ok...
Developer forum
E-mail notifications
403 when Manage Address (Delete)
Replies
What is the URL to delete the Address? It seems like you are being caught by SQL injection filter.... And then banned, hence the 403.1
Hi Nicolai...
Thanks for your repply.
I'm using the standard templates with the function deleteAddress(addressId)
Like this:
<a title="Delete" class="fa fa-times text-danger" onclick="deleteAddress('896');"></a>
<script>function deleteAddress(addressId){
if(document.getElementById('UserId').value == addressId){alert('Main address can not be deleted.');return;}else if (document.getElementById('DefaultAddressId').value == addressId){alert('You can’t delete a default address. Set another address as default before delete this address.');return;}else if(confirm('Delete address?'))
{document.getElementById('SelectedAddressId').value = addressId;document.getElementById('ManageAddressesFormAction').value = 'Delete';document.getElementById('UserManagementManageAddressesForm').submit();}}</script>
<form name="UserManagementManageAddressesForm" id="UserManagementManageAddressesForm" action="http://domainxxx/Default.aspx?ID=379&ObjectID=261&Action=ManageAddresses" method="post">
<input name="ManageAddressesFormAction" id="ManageAddressesFormAction" type="hidden" value="Delete">
<input name="SelectedAddressId" id="SelectedAddressId" type="hidden" value="896">
<input name="UserId" id="UserId" type="hidden" value="17568">
<input name="DefaultAddressId" id="DefaultAddressId" type="hidden" value="17568">
</form>
Hm - need a URL to take a look
http://domain.com/Default.aspx?ID=379&addr=1&ObjectID=261&Action=ManageAddresses&ManageAddressesFormAction=Delete&SelectedAddressId=897&UserId=17568&DefaultAddressId=17568
I used the same in other domain, and is working...
You must be logged in to post in the forum