mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
commit
0d5d2e0b7c
@ -107,6 +107,11 @@ Then run the installer and indicate that the system is ready to install:
|
|||||||
php artisan install --ready
|
php artisan install --ready
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Install Cors
|
||||||
|
|
||||||
|
php artisan vendor:publish --provider="Barryvdh\Cors\ServiceProvider"
|
||||||
|
|
||||||
|
|
||||||
## Development Team
|
## Development Team
|
||||||
|
|
||||||
Vedat Akdoğan @vedatakd
|
Vedat Akdoğan @vedatakd
|
||||||
|
|||||||
@ -5,5 +5,8 @@
|
|||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Visiosoft\\ProfileModule\\": "src/"
|
"Visiosoft\\ProfileModule\\": "src/"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"barryvdh/laravel-cors": "^0.11.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php namespace Visiosoft\ProfileModule;
|
<?php namespace Visiosoft\ProfileModule;
|
||||||
|
|
||||||
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
||||||
|
use Barryvdh\Cors\ServiceProvider;
|
||||||
use Visiosoft\ProfileModule\Adress\Contract\AdressRepositoryInterface;
|
use Visiosoft\ProfileModule\Adress\Contract\AdressRepositoryInterface;
|
||||||
use Visiosoft\ProfileModule\Adress\AdressRepository;
|
use Visiosoft\ProfileModule\Adress\AdressRepository;
|
||||||
use Anomaly\Streams\Platform\Model\Profile\ProfileAdressEntryModel;
|
use Anomaly\Streams\Platform\Model\Profile\ProfileAdressEntryModel;
|
||||||
@ -95,7 +96,12 @@ class ProfileModuleServiceProvider extends AddonServiceProvider
|
|||||||
'profile/notification' => [
|
'profile/notification' => [
|
||||||
'uses' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@notification',
|
'uses' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@notification',
|
||||||
],
|
],
|
||||||
'register/ajax' => 'Visiosoft\ProfileModule\Http\Controller\UserAuthenticator@registerAjax',
|
'register/ajax' => [
|
||||||
|
'uses' => 'Visiosoft\ProfileModule\Http\Controller\UserAuthenticator@registerAjax',
|
||||||
|
'middleware' => [
|
||||||
|
\Barryvdh\Cors\HandleCors::class,
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -174,7 +180,7 @@ class ProfileModuleServiceProvider extends AddonServiceProvider
|
|||||||
* @type array|null
|
* @type array|null
|
||||||
*/
|
*/
|
||||||
protected $providers = [
|
protected $providers = [
|
||||||
//\ExamplePackage\Provider\ExampleProvider::class
|
ServiceProvider::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
22
config/cors.php
Normal file
22
config/cors.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Laravel CORS
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| allowedOrigins, allowedHeaders and allowedMethods can be set to array('*')
|
||||||
|
| to accept any value.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'supportsCredentials' => false,
|
||||||
|
'allowedOrigins' => ['*'],// ex: ['abc.com', 'api.abc.com']
|
||||||
|
'allowedHeaders' => ['*'],
|
||||||
|
'allowedMethods' => ['*'],// ex: ['GET', 'POST', 'PUT', 'DELETE']
|
||||||
|
'exposedHeaders' => [],
|
||||||
|
'maxAge' => 0,
|
||||||
|
|
||||||
|
];
|
||||||
Loading…
Reference in New Issue
Block a user