No 'Access-Control-Allow-Origin' header is present on the requested resource

Hello Mark,
I have table “tblRewards” with various fields, using “Save” api trying to store the data.
Below is the syntax along with constructor.
var reward = new tblRewards( {
nVendorID : Voucherlist.nVendorID,
strVendorName : Voucherlist.strVendorName,
strVendorEmailID : Voucherlist.strEmailID,
strUserEmailID : emailID,
strCategoryID : Voucherlist.strCategoryID,
strTermsConditions : Voucherlist.strTermsConditions,
strRewards : Voucherlist.strRewards,
strUtilised : “false”,
strNotUsedFilePath : Voucherlist.strNotUsedFilePath,
strUsedFilePath : Voucherlist.strUsedFilePath
In strNotUsedFilePath and strUsedFilePath field contains the image link.
XMLHttpRequest cannot load
Error Message :
No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access. The response had HTTP status code 502.
Please let me know the solution
Thanks in advance.

please provide your application id

Hello Sergey,

Here is my application Id


please send us an example on that demonstrates this issue

Hi anithraj,

I have reproduced your problem. We will try to help you as soon as possible.
Regards Ilya

Ok. It looks like everything works fine now.
I’ve just refreshed the types of those two columns ‘strNotUsedFilePath’ and ‘strUsedFilePath’
Regards Ilya

Hello Ilya,

How its working fine now. What was the problem ?
Do i need to change anything from my side?


You should not change anything.
Please, just try you to run your code now and if it will not work let us know.
Regards Ilya