Author Topic: [SOLVED] Server 403 code instead of 200 in Safari  (Read 423 times)

d0ublezer0

  • Jr. Member
  • **
  • Posts: 192
[SOLVED] Server 403 code instead of 200 in Safari
« 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

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
we found 200 server code

So, that is the question: is the server-specific error, or virtuemart?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9028
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Server 403 code instead of 200 in Safari
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

d0ublezer0

  • Jr. Member
  • **
  • Posts: 192
Re: Server 403 code instead of 200 in Safari
« Reply #2 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?

d0ublezer0

  • Jr. Member
  • **
  • Posts: 192
Re: Server 403 code instead of 200 in Safari
« Reply #3 on: February 08, 2019, 13:00:18 pm »
RSFirewall created a problem: after it was turned off, everything worked as it should.