Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The value returned by get_site_url() is true and secure within the WP environment. You could set up an API route that sends this value back to your app upon request. Then the issue is to how to secure an API response. Use the same techniques you’d use for any HTTPS communication. Exchanges should involve some sort of security token ensuring the data within is true and accurate. Some sort of nonce scheme might be adequate. Note that WP nonces are not true nonces since they can be used multiple times. You may want to implement true nonces that can only be used once. For even greater security, consider using JWT or oAuth schemes.

Viewing 1 replies (of 1 total)

The topic ‘Secure Redirection from a Plugin with Dynamic wordpress Site URL’ is closed to new replies.