I am having a problem in accessing the rollbase private cloud with Telerik mobile application. Following error occurs.
"Response to preflight request doesn't pass access control check: Credentials flag is 'true', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials. Origin 'http://app.icenium.com' is therefore not allowed access."
I have successfully connected to the Rollbase cloud, but with the same Telerik app (only service URI and Catelog URI chenged into the private cloud ) won't work for private cloud. Following is the difference between the two calls going for login. It seems we have to change 'Access-Control-Allow-Credentials'. Can anyone please suggest where to change it?
Hello,
Please check that the property progressDataServiceCORSHost is specified in the shared.properties file.
Using this property should allow the generation of the Access-Control-Allow headers to solve the CORS scenario.
See the following links:
- documentation.progress.com/.../
I hope this helps.
Hi egarcia,
Thanks for the information.
We have set the following attributes in the shared.properties file.
RBMobile_CORS.Allow_origin.HOST = .app\\.icenium\\.com$
ProgressDataServiceCORSHost = http://app.icenium.com
But now only for icenium simulator the app works. I want to add the https://platform.telerik.com also as a CORS host so that it works for the inbuilt simulator in the appbuilder.
Is there a way we can add two or more URLs (Or a wildcard) as the orign?
Hi Janani,
Try,
RBMobile_CORS.Allow_origin.HOST = .app\\.icenium\\.com|.*platform\\.telerik\\.com$
Thanks and Regards,
Ithrees