/src/main/java/org/htmlunit/html/HtmlForm.java
if ( HttpMethod.POST == method) {
if ( HttpMethod.POST == method && browser.hasFeature ( FORM_SUBMISSION_HEADER_ORIGIN ) ) {
} request.setCharset(enc); if (browser.hasFeature(FORM_IGNORE_REL_NOREFERRER) || !relContainsNoreferrer()) { request.setRefererlHeader(htmlPage.getUrl()); } <extra_id_0> try { request.setAdditionalHeader(HttpHeader.ORIGIN, UrlUtils.getUrlWithProtocolAndAuthority(htmlPage.getUrl()).toExternalForm()); } catch (final MalformedURLException e) { if (LOG.isWarnEnabled()) {