div.tilt2
Member
- May 4, 2021
- 91
- 57
- 18
how to download the file its asking for password
Contribute to the community posting your own resources and participating
You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
how to download the file its asking for password
did you folloed the documentation ?
yes, I followed the documentation, I can run it to test locally, but I can't put it on the server, can you help me?did you folloed the documentation ?
yes but you need to have an account in vercelyes, I followed the documentation, I can run it to test locally, but I can't put it on the server, can you help me?
Navigate to /app/Http/Middleware
Edit ReactValid.php
class ReactValid
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
if ($request->hasHeader('X-software-id')) {
$react_status = 1;
$react_domain = 'YOUR_FRONTEND_WEBSITE_URL';
if ($react_status == 1 && $react_domain) {
$url = str_ireplace('www.', '', parse_url(request()->headers->get('origin'), PHP_URL_HOST));
if (str_ireplace('www.', '', parse_url($react_domain, PHP_URL_HOST)) == $url) {
return $next($request);
}
}
return response()->json([],404);
}
// continue request
return $next($request);
}
}
App\CentralLogics\helpers.php -> replace with the below file
which file?App\CentralLogics\helpers.php -> replace with the below file
you don't need to care about this page if you configured directly in file
ok, soyou don't need to care about this page if you configured directly in file
yesok, so
$react_domain = 'YOUR_FRONTEND_WEBSITE_URL';
Over here we need to replace with the domain right
example: $react_domain = ' https://example.com';
then too only demo is working, not with my domain, it redirects to 404
removed return 404 code towards the end and its working well