I've got a virtualbox VM setup as a proxy server between Drupal to try to replicate a CDN causing errors on a client's machine.
My current port is as follows: http://site-name.dd:9999
When I go to the proxy-enabled site, and try to use a given entity reference, I get a 403 error:
An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: http://site-name.dd:8086/index.php?q=entityreference/autocomplete/single/field_guardians/participant/player/NULL
StatusText: Forbidden
ResponseText:
Access denied | Site Here
Skip to main content
Site Title Here
Main menuName
Another Name
A Third Name
Products
Access denied You are not authorized to access this page.
My guess is that this is due to me trying to access via port 9999, and the direct site being on 8086.
I believe a similar (though perhaps not exact issue) is also facing the client. How do I deal with this AJAX error? Has anyone seen anything like this?
This is for a D7 site.
EDIT:
I have also tried changing these settings in settings.php:
$conf['reverse_proxy'] = TRUE;
And alternatively setting one of these two and testing with each, with no success:
$conf['reverse_proxy_addresses'] = array('10.1.0.157');
$conf['reverse_proxy_addresses'] = array($_SERVER['REMOTE_ADDR']);
EDIT 2:
From what I can find, the error is because it is getting the original server port from the autocomplete field input element value. So either I need a way for the 8086 port to recognize the 9999 port as legitimate or I need to switch to the 9999 port as correct.