Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

chabgui's avatar

app works with homestead but i see code with forge

Hello,

i have just deploy my app. it works fine with homestead but i see code with forge. i test just phpinfo() it make the same result...

0 likes
3 replies
Dalma's avatar

Do you see the html in views or do you see the error page like Whoops?

chabgui's avatar

I see html...blade works because i see views but i see html on all views. I try just phpinfo() on index view, same result.

chabgui's avatar

I found the pb. I make a cors middleware for test like this :

class Cors {

public function handle($request, Closure $next)

{
    return $next($request)
        ->header('Content-Type', '*')
        ->header('Access-Control-Allow-Origin', '*')
        ->header('Access-Control-Allow-Methods', '*')
        ->header('Access-Control-Allow-Headers', '*');
}

don't do that. Forge don't like it. :-)

Please or to participate in this conversation.