X-Frame-Options set to sameorigin

Created on 17 August 2022, over 2 years ago
Updated 26 February 2023, over 1 year ago

Hi All,

I integrated Authorize.net form using IFrame and Lightbox in my custom module using anet_php_sdk library. I created payment form and in the same path only I created IFrameCommunicatorUrl.html file which contains the Authorize.net code provided in developer guide to receive the transaction response from Authorize.net. Then I set this URL to hostedPaymentIFrameCommunicatorUrl setting value while generating the token. I am able to generate the token and able to see the iFrame popup which contains the payment fields, But when I am doing the payment in Iframe popup I am getting below error:
"Refused to display 'https://mysite.org/' in a frame because it set 'X-Frame-Options' to 'sameorigin'."

To override the x-frame options, I installed x-frame options module and set value as "Allow All". Then I am getting "Refused to display 'https://mysite.org/' in a frame because it set 'X-Frame-Options' to ( 'Allow-All', 'sameorigin'). So falling to Deny" error.
I even tried with setting the X-Frame-Options in httpd.conf file, still getting sameorigin error.

Please guide me If I am missing something and how to resolve this issue.

Thanks in Advance!!

🐛 Bug report
Status

Closed: duplicate

Version

1.2

Component

Code

Created by

🇮🇳India Ramani Sumathi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024