Fixes for valid urls
This commit is contained in:
parent
c3668d7999
commit
57cbbd0a42
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ class PreviewController extends BaseController
|
|||
|
||||
public function live(PreviewInvoiceRequest $request)
|
||||
{
|
||||
if (Ninja::isHosted() && in_array($request->getHost(), ['preview.invoicing.co','staging.invoicing.co'])) {
|
||||
if (Ninja::isHosted() && !in_array($request->getHost(), ['preview.invoicing.co', 'staging.invoicing.co'])) {
|
||||
return response()->json(['message' => 'This server cannot handle this request.'], 400);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue