Tunnel only accesible for my website
I have my website uploaded in vercel and using cloudflare domains and dns. This website makes requests to a local server on a raspberry, so they can configure a tunnel with the raspberry address. But I realized that now all people can make requests to that tunnel, I want to limit it only so that my website can do it only
1 Reply
If you mean from web browsers which respect the rules, look into CORS https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS for APIs and CORP https://developer.mozilla.org/en-US/docs/Web/HTTP/Cross-Origin_Resource_Policy for Resources
If you mean in general from anything, headless clients can ignore cors/corp and make requests anyway