You could try to add the site collection URL where SPFX is located to the request body, then judge whether to accept the request after the azure function receives the URL value.
this.context.pageContext.web.absoluteUrl
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.