• Resolved Nishat Shahriyar

    (@rednishat)


    Hello,

    I was using application password to add my WP site with 3rd party services. It was doing fine but I setup a new website where WordPress Version 6.5.4 application passwords are not connecting with 3rd party.

    I can create the password, but when I used it in the 3rd party it showing failed to verify error. My old site is doing okay even there WP upgraded to Version 6.5.4. but I can’t manage to do this with new website.

    I tried deactivating all plugins, no luck.

    REST API is enabled from my hosting end. Their support could not got any result too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you activated a security plugin? They sometimes switch off the REST API for external access or at least reduce the options for connecting. If you have one, deactivate it as a test.

    And even if you don’t think so, check the password again to make sure you’re using the right one. It can happen that you use the wrong one.

    And: what is the exact error message?

    Thread Starter Nishat Shahriyar

    (@rednishat)

    I deactivated all plugins, then tested. Also tried downgrade my WordPress, does not work.

    When I tried to use the my user name and newly create application manager pass it showing – “Failed to Verify” message. I tried multiple times carefully. Created passes multiple times, nothing happened.

    “Failed to Verify” is not a text that WordPress would return. It doesn’t even exist in the core. Are you sure that you can reach the API at all? A look at the access log could help.

    Thread Starter Nishat Shahriyar

    (@rednishat)

    No, it’s showing from the 3rd party tool I am trying to connect to my WP site using WP application pass manager.

    When ever I try to add 3rd part service to my WordPress website using WordPress Application Password Manager, it showing Failed to verify. My username and the application pass are not working.

    While debugging from browser, it showing this error:

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mywebsiteurl.com/wp-json/wp/v2/categories?per_page=100&page=1. (Reason: header ‘user-agent’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response).

    Firefox sending me to this page- https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowHeaderFromPreflight?utm_source=devtools&utm_medium=firefox-cors-errors&utm_campaign=default

    but I know so little about this. How can I update the server?

    I tried downgrading my WordPress, not worked. Deactivated all plugins, not worked. Turned mod sequrity off for domain, not worked.

    CORS also explains the error. This means that requests are only permitted from addresses defined in CORS. WordPress itself does not set this, it must come from your hosting. Your host’s support team should be able to help you with this.

    There are also plugins that can set CORS in WordPress, but I am unsure whether this works with the REST API. See: https://www.ads-software.com/plugins/enable-cors/

    Otherwise, here is a description of how to set the HTTP header for Apache or nginx accordingly: https://www.forge12.com/en/blog/enable-cors-in-apache-and-nginx/

    Thread Starter Nishat Shahriyar

    (@rednishat)

    Okay I finally craked the solution. Its FireFox problem, Used Chrome and now it’s working!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.