cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

CIM Hosted Form Integration with localhost & IFrame

Hello,

So I'm trying to integrate the CIM Hosted Form into my company's website, but I've been struggling with the hostedProfileIFrameCommuniatorUrl setting and actually being able to close the iframe. I am doing this in C# and using MVC, not sure if that actually matters, but when I put the path to the IframeCommunicator in the folder, I am getting the "ERR_SSL_PROTOCOL_ERROR" error.

 

This is my setting:

settings[1] = new settingType
            {
                settingName = settingNameEnum.hostedProfileIFrameCommunicatorUrl.ToString(),
                settingValue = "https://localhost:58858/contentx/IframeCommunicator"
            };

I have that path, and then I also created a View and an ActionResult in a controller that looks like this (for testing purposes):

settings[1] = new settingType
            {
                settingName = settingNameEnum.hostedProfileIFrameCommunicatorUrl.ToString(),
                settingValue = "https://localhost:58858/Manage/IframeCommunicator"
            };

I have tried just putting in 'http://' but it says it can't communicate with https://test.auth.net because it's not secure (obviously). So my question for whoever, is HOW DO I FIX THIS?? I've been going about it for about 8 hours already and it doesn't make sense.

 

Thank you in advance for the help and input!

ksanchezssmci1
Contributor
4 REPLIES 4

do you have https ssl cert install?

 

I have tried just putting in 'http://' but it says it can't communicate with https://test.auth.net because it's not secure (obviously).

is that just a warning?

RaynorC1emen7
Expert

No, I don't https ssl cert installed. Do I need to have it installed?

 

It still loads the hosted form, but this is the error:

 

"Mixed Content: The page at 'https://test.authorize.net/profile/addPayment' was loaded over HTTPS, but requested an insecure resource 'http://localhost:58858/Manage/IframeCommunicator'. This request has been blocked; the content must be served over HTTPS."

For testing you could change your secruity settings

Found this about:config options for Firefox

security.mixed_content.block_active_content

security.mixed_content.block_display_content

 

IE have it in secruity tab Display Mixed Content

I actually figured out what the issue was. In my visual studio project I didn't have SSL enabled for the localhost, so I enabled that and everything is working!! 

 

Thank you for the help and getting me looking down the right path!!!