• Resolved perryrylance

    (@perryrylance)


    Hi there

    I’m writing on behalf of WP Google Maps, pleased to meet you.

    Our plugin makes heavy use of the WordPress REST API.

    We are occasionally hearing from users who use your plugin on their site to facilitate a secure connection.

    This doesn’t seem to apply to the WordPress REST API URL and so REST calls are blocked.

    Are we overlooking something, or is this something you would be able to build into your plugin? If it’s not something you would build into the core, are there any hooks we can use in order that our plugin doesn’t try to use the http:// REST URL?

    Kind regards
    – Perry

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mark

    (@markwolters)

    Hi Perry,

    Really Simple SSL should force all REST API requests over https://. The plugin also contains a function to force http:// REST API requests over SSL. This function is used in the class-front-end.php file, see https://github.com/rlankhorst/really-simple-ssl/blob/master/class-front-end.php#L77. This function does contain a check if the HTTP_HOST is set. It might be possible this check fails on your customers sites.

    We have also seen REST API errors being caused by a cURL error for example. Are you sure this is not the case?

    Mark

    Thread Starter perryrylance

    (@perryrylance)

    Hi @markwolters

    We haven’t made those checks yet, but we shall endeavour to do so and update you with anything we find, thank you for the heads up!

    Kind regards
    – Perry

    Plugin Author Mark

    (@markwolters)

    @perryrylance perfect. Please let us know your findings, we’re happy to work with you in resolving any potential issues.

    Mark

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘REST API URL’ is closed to new replies.