upload images using laravel application on LEMP Ubuntu 16.04 return cors origin

August 14, 2017 1.4k views
Nginx PHP Ubuntu 16.04 LEMP PHP Frameworks

Hello Every body
I have project on my droplet consist of
1- backend application using laravel 5.4
2- front end using angular js 1.4.8
my issue when I try upload Images return to me this message

www.api.panakeias.com/updateTeacherpicprofile/9:1 PUT 
http://www.api.panakeias.com/updateTeacherpicprofile/9 500 (Internal Server Error)

/#/TeacherEdtiProfile:1 XMLHttpRequest cannot load http://www.api.panakeias.com/updateTeacherpicprofile/9. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.panakeias.com' is therefore not allowed access. The response had HTTP status code 500.

notice : I called already package in laravel enabeld cors orging
notice 2 : this path I save to my image : /var/www/panakeis_project/html/public/

1 comment
  • *note 3 :
    front end with domain
    and back end (laravel with anther sub - domain )
    but all data transfer good else images upload
    there is any reason for this ?? *

Be the first one to answer this question.