cross login

This commit is contained in:
glovetleong
2021-08-25 10:01:32 +08:00
parent 2095c18871
commit 2d49f4aabf
2 changed files with 3 additions and 5 deletions
@@ -12,7 +12,7 @@
<div class="col text-center">
<div class="row m-b-20">
<div class="col">
<iframe style="width: 500px; height: 600px" src="http://unity.test/test"></iframe>
<iframe style="width: 500px; height: 600px" src="http://exchange-2.0.test/cross-login"></iframe>
</div>
</div>
<div class="row">
@@ -36,7 +36,7 @@
},
methods:{
iframeEvent(event) {
if(event.origin !== 'http://unity.test') return;
if(event.origin !== 'http://exchange-2.0.test') return;
console.log(event.data);
}
},
+1 -3
View File
@@ -64,6 +64,4 @@ Route::get('/customer/{marking}', function ($marking) {
return view('pages.customers.profile', ['id' => $id]);
})->name('customer.profile');
Route::get('/order/{id}/download', 'Orders\DownloadOrderQrPdfController@download')->name('order.qr.download');
Route::get('/test', 'TestController@test')->name('test');
Route::get('/order/{id}/download', 'Orders\DownloadOrderQrPdfController@download')->name('order.qr.download');