Fixes for valid urls
This commit is contained in:
parent
9d91659087
commit
c3668d7999
1 changed files with 2 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ class PreviewController extends BaseController
|
|||
|
||||
public function design(DesignPreviewRequest $request)
|
||||
{
|
||||
if (Ninja::isHosted() && $request->getHost() != 'preview.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);
|
||||
}
|
||||
|
||||
|
|
@ -340,7 +340,7 @@ class PreviewController extends BaseController
|
|||
|
||||
public function live(PreviewInvoiceRequest $request)
|
||||
{
|
||||
if (Ninja::isHosted() && $request->getHost() != 'preview.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