Loading

Error "Refused to display url in a frame because it set 'X-Frame-Options' to 'sameorigin'

Data pubblicazione: Mar 2, 2024
Risoluzione

SYMPTOM

An inline frame(iframe) is used in html page to send request to a Mule application in Cloudhub 1.0 behind Dedicated Load Balancer. However, the response is not showed in web browser.
Using web browser developer tool, it is found error "Refused to display url in a frame because it set 'X-Frame-Options' to 'sameorigin'" showed in Consoleerror in browser

CAUSE

This error is caused by the fact that Dedicated Load Balancer injects header X-Frame-Options into HTTP response. 

SOLUTION

The header injected by Dedicated Load Balancer is expected and browser is behaving correctly.
Check knowledge article  Unable to Override the HTTP Response Headers X-Frame-Options: SAMEORIGIN from DLB for more details about this header.
Also it is not suggested to use header "ALLOW-FROM origin" as it is not supported in modern browsers. Check Mozilla page for more details.
 

Disclaimer: This article involves products and technologies which do not form part of the MuleSoft product set. Technical assistance for such products is limited to this article.
 
Numero articolo Knowledge

001123273

 
Caricamento
Salesforce Help | Article