function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vishal_ThoriyaVishal_Thoriya 

Unable to send request from https to http

I have developed a visualforce page and and it is being shown on standard layout.

When i try ti pull the records i am recieving following error.

XMLHttpRequest cannot load https://c.cs2.visual.force.com/apex/AccountPerformance?id=001R000000gidwJ&core.apexpages.devmode.url=1. Origin http://c.cs2.visual.force.com is not allowed by Access-Control-Allow-Origin.

Is there any way to open any visualforce page within visualforce page with parent domain?

It is working without issue when i try to open my page with https.

Please suggest me any workaround for this.

Thanks,
VIshal Thoriya.