Response status 0 unknown url ERR_SPDY_PROTOCOL_ERROR for http.post


#1

Hi,

Got error net::ERR_SPDY_PROTOCOL_ERROR in my browser…

I am building client side app with ionic and trying to do http.post but get this error for method post, but run succes in method get…

I also trying it in my postman and it working fine for both method…

my domain name: https://foodieattacts.000webhostapp.com/
to be precise my url for method post:
[url] api/transaction/create.php

  • I also added this line in .htaccess
    Header always set Access-Control-Allow-Origin “*”
    Header always set Access-Control-Allow-Methods “POST, GET, OPTIONS”
    Header always set Access-Control-Allow-Headers “x-api-key, origin, x-requested-with, content-type, accept, access-control-request-method”
  • read all the topic about this error and found no clue…
  • Inspect element in my browser in network tab, i click the error and it not showing anything in response tab…
  • copy curl in my browser and testing it in my postman, no response
  • tried using my other browser mozilla, same error

Please need your help…! Thanks


#2

Hi @alpintay

  1. Clear your browser cache
  2. Flush your DNS
  3. Update your browser
  4. If error is not gone, what is the precise URL on which you are receiving the error and in what circumstances?