crater
crater copied to clipboard
302 Redirect on Domain Verification
Describe the bug When attempting to verify my domain to complete the installation, the API call which sets the domain is being redirected to the installation path, causing the domain to fail to verify.
The PUT request to http://sub.my.domain/api/v1/installation/set-domain returns a 302, and the API call is directed to http://sub.my.domain/installation
The PUT request attempts to be sent to http://sub.my.domain/installation due to the redirect, which returns a 403, causing the domain to fail to verify.
Expected behavior Domain verification to be successful, move to the next step of the installation.
Screenshots If applicable, add screenshots to help explain your problem.
Please complete the following information:
- Crater version: 5.0.3
- PHP version: 7.4.25
- Database type and version: MySQL 5.7.36-cll-lve
Optional info
- OS: Linux Shared Hosting
- Proxy: Cloudflare
- Browser: Chrome
I have attempted both with SSL and without, with different subdomains, and with different versions of Crater, from 4.2.0 and above.
This looks like an issue with cloudflare configuration or proxy.
https://laravel.com/docs/8.x/requests#configuring-trusted-proxies
Iam having the same issue with similar setup without proxy/cloudflare.
hi, i am having the same issue. I have tried incognito etc. This is so frustrating because I can it to work local without any issue. I was hoping it would be that simple on my server so i didnt need anyone else to do anything.