allowed-origins configuration
Added by George McFie 26 days ago
Hi, hope that someone can point me in the right direction.
I am attempting to configure my server to allow it to be rendered inside the iframe of another server running on the same machine.
As I understand it, I only need to configure allowed-origins correctly in the wt_config.xml file, but nothing I do seems to work. I have tried all of the following …
<allowed-origins>*</allowed-origins>
<allowed-origins>null</allowed-origins>
<allowed-origins>http://127.0.0.1:8082/vms</allowed-origins>
<allowed-origins>http://localhost:8082/vms</allowed-origins>
The only way I can get it to work is to specify it’s own URL. In other words if it connects to itself.
According to the notes in wt_config.xml, the Origin header of the connecting server must be an exact match for what appears in the allowed-origins list. Is there a convenient way to see what that Origin header might be?
Any help would be appreciated.
Replies (1)
RE: allowed-origins configuration - Added by Mark Petryk 26 days ago
Hi George,
Can you try something like this to get the origin value?
app-> environment().headerValue( "Origin" )