• Hello, I went to test the update that performs the authentication with Mautic through the API, but it doesn’t work here, the authorization with Mautic is carried out successfully, but now it opens two new boxes to put the ( Access Token and Refresh token ). Where do I find? when I click on Conectac, it keeps giving A valid URL was not provided.

    https://ibb.co/nRVQ1CD

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author verygoodplugins

    (@verygoodplugins)

    @vinifrozi This error means that WordPress either thinks the destination URL is invalid, or unsafe.

    For example if you entered https://mautic.mysite.com, and Mautic was installed at https://mautic.mysite.com (with an “s”), WordPress will block you from connecting, to prevent anyone from potentially stealing your data.

    I would confirm that the URL is correct or maybe contact your hosting company to see if there are any issues with your Mautic subdomain. For example a special rule in your hosts file, or an invalid SSL certificate.

    As an extreme measure, you can bypass this security check with a filter. That looks like this:

    add_filter( 'http_request_args', function( $args ) {
        $args['reject_unsafe_urls'] = false;
        return $args;
    } );

    However, in that case the connection between WordPress in Mautic is not guaranteed to be secure— and it’s possible for people to intercept or steal your data. So I recommend not using that snippet, and instead working to try to figure out what’s wrong with your Mautic install URL ??

    Thread Starter Marcos Vinicius

    (@vinifrozi)

    Wouldn’t you like you can bypass the security check with a filter only on the specified URL?

    Plugin Author verygoodplugins

    (@verygoodplugins)

    Yes you can also update the filter so that it runs only on specific URLs.

    But I recommend fixing the security issue with your URL rather than trying to bypass the unsafe URL check.

    Thread Starter Marcos Vinicius

    (@vinifrozi)

    We’re going to solve this this week, but could you pass me this filter so I can add it here

    Plugin Author verygoodplugins

    (@verygoodplugins)

    You can try this: https://pastebin.com/pBj7dX2F

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error: A valid URL was not provided.’ is closed to new replies.