It looks like opnsense exposes this on the port forward page. Go to your port 80/443 forward and there is probably an enable NAT reflection option.
Look for something called hairpin NAT or NAT reflection
@papertigers