Yii2 Cors Filter - randomly missing 'Access-Control-Allow-Origin' header -
i have created small api request data different domain. in controller have set cors filter using default values (api public, need allow origins):
public function behaviors() { return [ 'corsfilter' => [ 'class' => \yii\filters\cors::classname(), ] ]; }
problem request returns error:
no 'access-control-allow-origin' header present on requested resource.
i error in few cases:
/api/transfer/destinations/airport-1 /api/transfer/destinations/airport-2 /api/transfer/destinations/airport-3 /api/transfer/destinations/airport-4 /api/transfer/destinations/airport-16 /api/transfer/destinations/airport-19
i have airports codes airport-1 airport-27, of codes, except ones mentioned above, work.
i have noticed requests missing access-control-allow-origin
header, have content-length
above 4000, while others have content-length
below 3000. not sure if issue , if don't know how solve using cors filter.
i have not been able find information type of bug.
Comments
Post a Comment