+ Start a Discussion

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.

VIshal Thoriya.