spatie / laravel-web-tinker

Tinker in your browser
https://spatie.be/open-source
MIT License
1.05k stars 68 forks source link

Doesn't work behind a reverse proxy #105

Closed nadirabbas closed 6 months ago

nadirabbas commented 6 months ago

If web-tinker is used behind an HTTPS reverse proxy, but the server itself is not HTTPS, it will generate HTTP based absolute URLs which then the tinker client will make requests to, and fail because of Mixed Content security errors.

The code that generates absolute URLs is in src/Http/Controllers/WebTinkerController.php

I have set the APP_URL environment variable to an HTTPS url.