I'm using Laravel with React js . i want to download files so i use return response()->download($pathToFile)
where pathToFile is located in public dir.my url is guarded by auth middleware.
i tried solution at Force Download via Ajax and PHP but doesn't work.
In another hand i use axios to send ajax request to get file, I get response headers like that
How i force browser to download file?