|
@@ -31,7 +31,7 @@ class AllowOriginMiddleware extends BaseMiddleware
|
|
|
*/
|
|
*/
|
|
|
protected $header = [
|
|
protected $header = [
|
|
|
'Access-Control-Allow-Origin' => '*',
|
|
'Access-Control-Allow-Origin' => '*',
|
|
|
- 'Access-Control-Allow-Headers' => 'LonLat, X-Token, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With,Form-type,Referer,Connection,Content-Length,Host,Origin,Authorization,Authori-zation,Accept,Accept-Encoding',//,Host,Origin,Authorization,Authori-zation,Accept,Accept-Encoding
|
|
|
|
|
|
|
+ 'Access-Control-Allow-Headers' => 'LatLon, X-Token, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With,Form-type,Referer,Connection,Content-Length,Host,Origin,Authorization,Authori-zation,Accept,Accept-Encoding',//,Host,Origin,Authorization,Authori-zation,Accept,Accept-Encoding
|
|
|
//'Access-Control-Allow-Headers' => '*',
|
|
//'Access-Control-Allow-Headers' => '*',
|
|
|
'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS,DELETE',
|
|
'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS,DELETE',
|
|
|
'Access-Control-Max-Age' => '1728000'
|
|
'Access-Control-Max-Age' => '1728000'
|