Problem when using a nonce

Hi, I have a problem when using a nonce. I’m making a plugin and localising a nonce value. So, if the rest API is contacted from another domain, will the nonce work? Where will it be generated? Thank you for your answer in advance.

here is the complete guide