We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5754415 commit d7e3b90Copy full SHA for d7e3b90
1 file changed
src/Http/Middleware/Impersonate.php
@@ -41,7 +41,9 @@ public function handle($request, $next)
41
42
!$request->expectsJson() &&
43
44
- starts_with($response->headers->get('Content-Type'), 'text/html')
+ starts_with($response->headers->get('Content-Type'), 'text/html') &&
45
+
46
+ !str_contains($request->path(), 'nova-api')
47
) {
48
49
/** @var Response $response * */
0 commit comments