here is the topology, I'm use only vue js for front end and Laravel as back end
- Back End/API Server (Intranet/Private access) Laravel
- Admin Front End (Intranet/Private access) Vue
- Public Front End (Internet/Public access) Vue
All of front end server can access the Back End server
The problems is with the public front end, because I think vue is client side, so the client can't get access to the API server,
So with this problems I have one solution to make server side web app (Laravel) on the public front end to make / send request to back end server, and the vue on the public server access this server side
my question is
How can I forward all the request from vue in public, to server side, and the server side make request to back end. Can I make request simple request like this ?, because I use form data on front end
$photo = fopen('photo.jpg', 'r');
$response = Http::attach(
'attachment', $photo, 'photo.jpg'
)->post('http://the-back-end-server/');
How about to access the image, because the image was saved on back end, how can I access it from public front end ?
Or maybe anyone have another solution ?
Thanks
Thanks, sorry for my bad english
question from:
https://stackoverflow.com/questions/65859210/how-to-forwarding-all-request-to-private-back-end 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…