Skip to content

Uncaught SecurityError: Blocked a frame with origin "https://api.razorpay.com"  #5

Description

@githubmss

First of all thanks for such a wonderful plugin , you make us work really easier , Please give my regards to your development team .. you guys really did a great work !!!! Basically I am using rzp-cordova-example in my application , everything is fine , i successfully able to integrate in my application as per your instructions

Free recharge is working fine but i am getting one Security error with other options , here is the error i am getting :

Uncaught SecurityError: Blocked a frame with origin "https://api.razorpay.com" from accessing a frame with origin "file://". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "file". Protocols must match.

Is the above error related to my KEY , please let me know how to resolve it.

After Adding meta tags in index.html above error removes but now i am getting this following error when i try to pay through NetBanking

MetaTags i used are as follows :

<meta http-equiv="Content-Security-Policy"
	content="default-src *; style-src 'self' http://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'" />
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport"
	content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">

Error which i am getting now is :

Uncaught DOMException: Blocked a frame with origin "https://api.razorpay.com" from accessing a cross-origin frame.
at Yt.write (https://checkout.razorpay.com/v1/checkout-frame.js:2:6651)
at ne.writePopup (https://checkout.razorpay.com/v1/checkout-frame.js:2:15193)
at ne.generate (https://checkout.razorpay.com/v1/checkout-frame.js:2:13826)
at ne (https://checkout.razorpay.com/v1/checkout-frame.js:1:7779)
at window.Razorpay.ti.createPayment (https://checkout.razorpay.com/v1/checkout-frame.js:2:16038)
at Ge.submit (https://checkout.razorpay.com/v1/checkout-frame.js:3:27388)
at Ge.preSubmit (https://checkout.razorpay.com/v1/checkout-frame.js:3:26538)
at HTMLFormElement.e (https://checkout.razorpay.com/v1/checkout-frame.js:1:19306)

Please let me now , what causing me this problem though i am searching on google too about it.

Appreciate!!!!!

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