By engamr
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/
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I’ve had a similar problem in the past. To solve the problem I used the following package:
https://github.com/barryvdh/laravel-cors
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.