Skip to content

Paystack Popup blocked by SAMEORIGIN policy #90

@ayomide865

Description

@ayomide865

Hello Paystack.

We use your Paystack Popup InlineJS library to accept payments on our web application. Up until recently it's been working fine. But our customers sometimes report issues during the billing flow. We successfully reproduced the issue.

We didn't see any official Github repo for the library, so we're reporting it here.

Main Cause

During the initialization of the popup, the request to checkout.paystack.com has one of its response headers, X-FRAME-OPTIONS, sometimes set as SAMEORIGIN and this is why the browser refuses to render it as the sameorigin policy would require the popup to only display on *.paystack.com websites. Please note that we followed the InlineJS guide linked above and it has always worked. Just that recently, and randomly, we sometimes get the issue. So, we were wondering if it was something you were aware of and how we can proceed.

Console Error

Screenshot from 2024-12-11 17-03-45

WebPage

Screenshot from 2024-12-11 17-08-11

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions