crater icon indicating copy to clipboard operation
crater copied to clipboard

302 Redirect on Domain Verification

Open wilddwolfdev opened this issue 3 years ago • 3 comments

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.

wilddwolfdev avatar Dec 08 '21 12:12 wilddwolfdev

This looks like an issue with cloudflare configuration or proxy.

https://laravel.com/docs/8.x/requests#configuring-trusted-proxies

mohitpanjwani avatar Dec 09 '21 02:12 mohitpanjwani

Iam having the same issue with similar setup without proxy/cloudflare.

wtfmejt avatar Jan 08 '22 16:01 wtfmejt

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.

ManySolutions avatar Aug 27 '22 10:08 ManySolutions