• SF Practice
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Gaurav Gulati

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 5
    Replies
Hello,

Is it possible to send cookies from Salesforce Lightning Controller using (navigateToURL) to external non salesforce domain?

I am able to create cookies using document.cookie in Salesforce Lightning Controller but while redirecting user to external non salesforce domain not able to push cookies. I do see cookies are pushing in same salesforce domain if I am calling another object thru url but not pushing to external non salesforce domain.

Any suggestion will be helpful.

Thanks,
Gaurav
Hello, I have a button click opening external URL. On the button click from Lightning controller, I am using e.force:navigateToURL to redirect user to external URL. I need to send cookie information to this external URL. I am using XMLHttpRequest.setRequestHeader but it is not sending cookie info in header while redirecting. Please let me know if this is feasible and what is the way of doing it.

It is working fine if I am adding the information in QueryString but this is not a preferred way.

Thanks,
Gaurav
Hello I am using Excel connector for Sandbox env and using below url:
https://test.salesforce.com/services/Soap/c/16.0

When I select cell of Salesforce ID and try to use "Query Selected Rows", it gives me following error:
Salesforce: Query() invalid Range, missing data type, or other error, type is: An internal server error has occurred while processing your request.

Please suggest.

Thanks
I am receiving an error on VF Page where Clicking on submit button is freezing the screen and not moving it to next vf page. This is only happening with 1 or 2 users.

ERROR 1:
Uncaught SecurityError: Sandbox access violation: Blocked a frame at "https://c.cs7.visual.force.com" from accessing a frame at "https://c.cs7.visual.force.com".  The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.initContentPane @ VFDevMode.js:21initContentFrame @ VFDevMode.js:22

ERROR 2:
Uncaught SecurityError: Failed to read the 'cookie' property from 'Document': The document is sandboxed and lacks the 'allow-same-origin' flag.getCookie @ main.js:75ActivityReminder._checkScheduleUpdates @ main.js:709

Thanks
Hello, I have a button click opening external URL. On the button click from Lightning controller, I am using e.force:navigateToURL to redirect user to external URL. I need to send cookie information to this external URL. I am using XMLHttpRequest.setRequestHeader but it is not sending cookie info in header while redirecting. Please let me know if this is feasible and what is the way of doing it.

It is working fine if I am adding the information in QueryString but this is not a preferred way.

Thanks,
Gaurav
Hello I am using Excel connector for Sandbox env and using below url:
https://test.salesforce.com/services/Soap/c/16.0

When I select cell of Salesforce ID and try to use "Query Selected Rows", it gives me following error:
Salesforce: Query() invalid Range, missing data type, or other error, type is: An internal server error has occurred while processing your request.

Please suggest.

Thanks
I am receiving an error on VF Page where Clicking on submit button is freezing the screen and not moving it to next vf page. This is only happening with 1 or 2 users.

ERROR 1:
Uncaught SecurityError: Sandbox access violation: Blocked a frame at "https://c.cs7.visual.force.com" from accessing a frame at "https://c.cs7.visual.force.com".  The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.initContentPane @ VFDevMode.js:21initContentFrame @ VFDevMode.js:22

ERROR 2:
Uncaught SecurityError: Failed to read the 'cookie' property from 'Document': The document is sandboxed and lacks the 'allow-same-origin' flag.getCookie @ main.js:75ActivityReminder._checkScheduleUpdates @ main.js:709

Thanks