I just managed to get dropzone and another plugin to work with this fix (angularjs + php backend)
header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Credentials: true"); header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS'); header('Access-Control-Max-Age: 1000'); header('Access-Control-Allow-Headers: Origin, Content-Type, X-Auth-Token , Authorization');
add this to your upload.php file or where you send your request (for example, if you have upload.html and you need to attach files to upload.php, copy and paste these 4 lines). Also, if you use CORS plugins / addons in chrome / mozilla, be sure to enable them more than once to enable CORS.
Fedeco Nov 16 '16 at 12:57 2016-11-16 12:57
source share