Answer the question
In order to leave comments, you need to log in
Does php5 support Access-Control-Allow-Origin?
Guys, today I had a fight with a backend developer who tried to force me to make a post request to jsonp.
Because I am jun in web development, I tried not to argue, but today I spent all my working time sending a post request to jsonp, downloading all sorts of plugins, using all sorts of vue-resource / axios / fletch, but it didn’t help. As a result, I began to doubt, googled about jsonp and found out that you can’t fucking send post requests to jsonp and this crutch is already outdated.
And I would like to know if cors is supported in php5? And how to hint at my back'a not being right without hurting the feelings of believing php developers?
PS Our back was written 5-6 years ago in php5 and he is too lazy to rewrite the php7 version with fresh frameworks and clean code.
Answer the question
In order to leave comments, you need to log in
- post and jsonp are unrelated things
- php has nothing to do with cors, but can freely manage everything that it gives headers. But here it’s already better to set up a web server.
I believe that everyone is wrong from all sides
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question