Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excel is failed to download in laravel nova #157

Open
Rik0253 opened this issue Jan 5, 2023 · 2 comments
Open

Excel is failed to download in laravel nova #157

Rik0253 opened this issue Jan 5, 2023 · 2 comments

Comments

@Rik0253
Copy link

Rik0253 commented Jan 5, 2023

Hi I cannot download the excel from nova. it says "Failed-Forbidden" in chrome
image

Any one please kindly help.

I have also added Maatwebsite\LaravelNovaExcel\LaravelNovaExcelServiceProvider::class, to app.php but then also it did not worked

@bolechen
Copy link

bolechen commented Sep 7, 2023

    if ($this->app->environment('production')) {
        URL::forceScheme('https');
        $this->app['request']->server->set('HTTPS', true);
    }

add this to AppServiceProvider is worked for me.

@Rik0253
Copy link
Author

Rik0253 commented Sep 7, 2023

if ($this->app->environment('production')) {
URL::forceScheme('https');
$this->app['request']->server->set('HTTPS', true);
}

@bolechen This did not work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants