first: it is not repeat question about access allow origin let me explain
now I develop project I used for front End Angular js application
and for backed lravel 5.2 I already install cors origin allowed in my project beacase all data It’s transfer very good but when I uploade images using ajax and base64 return to me this message form my browser
XMLHttpRequest cannot load http://www.api.panakeias.com/updateTeacherpicprofile/9. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore not allowed access. The response had HTTP status code 500.
I deployed my two project on digital ocean LEMP Stake Ubuntu 16.04
forntend project on main domain and backend project on sub-domain
how can I fix this problem
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!