VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: d0ublezer0 on February 05, 2019, 21:30:57 PM

Title: [SOLVED] Server 403 code instead of 200 in Safari
Post by: d0ublezer0 on February 05, 2019, 21:30:57 PM
At this time, i found this bug only in Mac OS Safari and Mac OS Opera :
open any page from my website, for example:
https://mysite/catalogue/tanker/tech-cap/kpd-220-detail
click add to cart
you will see spinner, but nothing else happened
(https://image.prntscr.com/image/pUfUFFhYTzaIT2LsAOHsFQ.png)
In Chrome, Firefox this action will add product to cart.
But on Safari and Opera in Mac OS  i found error.

Reason: Opera and Safari thinks that server answer is 403 instead of 200 (i think from console)
But if we open page, that raised 403 error:
https://mysite/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=ru&Itemid=732
(https://mysite/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=ru&Itemid=732)we found 200 server code

So, that is the question: is the server-specific error, or virtuemart?
Title: Re: Server 403 code instead of 200 in Safari
Post by: GJC Web Design on February 07, 2019, 23:26:26 PM
As u say ... the response on all browsers I have access to is a 200

as the response is normally server based I don't see how this is a VM issue ..  OS browser->server problem .. but have no Apple so I suggest u do some simple php script tests from apple browsers
Title: Re: Server 403 code instead of 200 in Safari
Post by: d0ublezer0 on February 08, 2019, 10:54:07 AM
I found this issue only on Apple. tested with iMac, MacBook and iPhone.
Safari and Opera raises 403 error when send POST ajax request (add to cart) to url:
https://mysite/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=ru&Itemid=732
Opening this url without POST request not raises error, i get code 200 (ok).

Chrome and Firefox for macOS and iOS not raise error.
I'm a little confused. What to do?
Title: Re: Server 403 code instead of 200 in Safari
Post by: d0ublezer0 on February 08, 2019, 13:00:18 PM
RSFirewall created a problem: after it was turned off, everything worked as it should.