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...
Do you see the html in views or do you see the error page like Whoops?
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.
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.