Author Topic: Error on AJAX call  (Read 1029 times)

0 Members and 1 Guest are viewing this topic.

Offline meronivalerio

  • Newbie
  • *
  • Posts: 2
Error on AJAX call
« on: October 31, 2019, 05:31:07 PM »
Hello,
I have the following problem: I created a webapp that uses AJAX to retrieve / edit data.
Occasionally (80%), these calls are blocked by Avast (if I turn off the antivirus everything works).
I wanted to understand why and if there is any way to avoid this behavior.
Requests are CORS, they start and end from domains with SSL certificate.

A JSON similar to this is passed into the request:

{"Command":"EditPlant","Name":"ABC_1","Image":"/prandelli/static/media/03-robot.68bebeeb.png","ValuesList":"{\"301|MB_MTR_2|ActiveEnergy|meter\":\"301 MTR_Frer - ActiveEnergy\",\"301|MB_MTR_2|ActiveEnergyExport|meter\":\"301 MTR_Frer - ActiveEnergyExport\",\"301|MB_MTR_76|ActiveEnergyExport|meter\":\"301 MTR_Frer - ActiveEnergyExport\",\"301|MB_MTR_2|ActiveEnergyExportL1|meter\":\"301 MTR_Frer - ActiveEnergyExportL1\",\"301|MB_MTR_2|ActiveEnergyExportL2|meter\":\"301 MTR_Frer - ActiveEnergyExportL2\",\"301|MB_MTR_76|ActiveEnergyExportL2|meter\":\"301 MTR_Frer - ActiveEnergyExportL2\",\"301|MB_MTR_2|ActiveEnergyExportL3|meter\":\"301 MTR_Frer - ActiveEnergyExportL3\",\"301|MB_MTR_76|ActiveEnergyExportL3|meter\":\"301 MTR_Frer - ActiveEnergyExportL3\",\"301|MB_MTR_76|ActiveEnergyExportL1|meter\":\"301 MTR_Frer - ActiveEnergyExportL1\"}","FieldCounterPieces":"","FieldCounterDiscard":"","FieldState":"","PlantId":27}:

I attach a file with the details of the request

Offline Pondus

  • Probably Bot
  • ****
  • Posts: 37648
  • F-Secure user
Re: Error on AJAX call
« Reply #1 on: October 31, 2019, 06:19:49 PM »
Quote
Occasionally (80%), these calls are blocked by Avast (if I turn off the antivirus everything works).
Do you have avast with firewall ?  >>  https://forum.avast.com/index.php?topic=230308.0



Offline meronivalerio

  • Newbie
  • *
  • Posts: 2
Re: Error on AJAX call
« Reply #2 on: October 31, 2019, 06:31:14 PM »
No, the problem occurs when "Web Protection" is active