binary-person / rammerhead

User friendly web proxy powered by testcafe-hammerhead
239 stars 1.8k forks source link

crossDomainPort is not working #23

Open allmors opened 2 years ago

allmors commented 2 years ago

After I deployed it, I used 8443 as the cross-domain port, but it was not working and could not be used normally. I could only set it to 443, the same as the ssl port, but the rammerhead.js file reported an error image

If it is set to port 8443, the video cannot be played,

image

image

darwapls commented 2 years ago

I have the same issue. Can someone please guide on the proper way to setup https on the crossdomainport?

binary-person commented 2 years ago

my demo setup involves just proxying ssl with nginx. can you try that instead?

allmors commented 2 years ago

my demo setup involves just proxying ssl with nginx. can you try that instead?

Yes, I configured ssl, 8433 prompts cross-domain, I can only use it with 443 port to use it normally.

image

The cross-domain port must be consistent with the port used by the website to play the video normally, otherwise there will be a problem in the first picture of the feedback section, prompting cross-domain

image

image

binary-person commented 2 years ago

hmm i see. yes, there are indeed some situations where simulating crossDomainPort will break things, bc of bad implementation. keep it at 443 for now, while i find the time to fix this

allmors commented 2 years ago

hmm i see. yes, there are indeed some situations where simulating crossDomainPort will break things, bc of bad implementation. keep it at 443 for now, while i find the time to fix this

thanks 😁