why axios get method request send twice?

后端 未结 1 511
星月不相逢
星月不相逢 2021-01-15 11:48

I run the axios get method to call php script.but request send twice how to solve this problem. myfunction:-

   axios.get(\'http://13.233.179.174/customers_         


        
相关标签:
1条回答
  • 2021-01-15 12:27

    It'a Preflight request

    It is an OPTIONS request, using three HTTP request headers: Access-Control-Request-Method, Access-Control-Request-Headers, and the Origin header.

    Check here - https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request

    0 讨论(0)
提交回复
热议问题