[removed][removed] = “humans_21909=1”; [removed].reload(true)[removed]

前端 未结 5 899
天涯浪人
天涯浪人 2021-01-11 09:58

web API build with wordpress is showing error of


相关标签:
5条回答
  • 2021-01-11 09:59

    First of all, clone the website using the All In One WP Migration to your local development machine. Then, check the REST API, if the same error persists. It means you have some error in your code. In my case, the REST API works perfectly fine in my local machine but shows the same HTTP 409 conflict. I contacted with the Bluehost support. They told me they have some mod_security issues. After 2 3 days, they fixed it. It worked fine after that.

    0 讨论(0)
  • 2021-01-11 10:08

    I got same response for an API ending with api/register , then i change the name /register to /new_registerthen issue solved,

    I think register in url is the reason for this error

    0 讨论(0)
  • 2021-01-11 10:08

    At times this error occurs when you name you folder or files a reserved or blocked name.

    In my case I named a folder contact, turns out the name was blocked from being used as folder names.

    When testing my script on postman, I was getting this error:

    <script>
        document.cookie = "humans_21909=1"; document.location.reload(true)
    </script>
    

    I changed the folder name from contact to contacts and it worked. The error was gone.

    0 讨论(0)
  • 2021-01-11 10:09

    I am facing same issue while loading image. My image name is contact-desktop.png and contact-display-mob.png

    My cpanel hosting provider block name which contain words like contact or register. So I renamed that file and it is working perfectly.

    0 讨论(0)
  • 2021-01-11 10:17

    I ran into the same Problem and below are the two json api have issues which are using Json API User Plugin.

    http://example.com/api/get_nonce/?json=get_nonce&controller=user&method=register

    http://example.com/api/user/register/?username=eww_test&email=john@domain.com&display_name=John&notify=both&seconds=100&insecure=cool

    Then i move whole site to localhost and check APIs and they were working fine so i contacted host in my case hostgator.

    They suggested to disable mod_security for that domain which was subdomain in my case.

    And The issue has been resolved.

    Tested and worked well

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