I am writing API which is help developers to create upload functionality which works like below:
First Developer set API SECRET and create input tag and give some classes.Then he calls javascript libs for my API.So this API make this input beutiful and create some functions like this: when someone click on choose Image button and if input changed, it will send this image to my server and return image url.So developer will be able to allow user to upload their images to his API account.
But problem is if my server doesn't contain header('Access-Control-Allow-Origin: *');
it will return error.How can I solve this?