Embedded Mortgage Calculators (worked for a year, now forbidden?)

Our embedded mortgage calculators used to work for almost a year, but recently the code snippet shows “forbidden”

Seems that WIX changed something recently and blocks this.

The test site is here: https://dmitry240.wixsite.com/dmitry-mortgages
You can see the errors in the console.

DOMException: Blocked a frame with origin "https://dmitry240-wixsite-com.filesusr.com" from accessing a cross-origin frame.
    at S (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:901)
    at eg (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:10298)
    at eg (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:10209)
    at ey (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:11113)
    at https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:136:395
    at eg (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:10405)
    at e.generateAndInjectStyles (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:7470)
    at https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:13282
    at M (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:13708)
    at ix (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:12:59036)
ai @ calculators.js:12
calculators.js:12 Uncaught DOMException: Blocked a frame with origin "https://dmitry240-wixsite-com.filesusr.com" from accessing a cross-origin frame.
    at S (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:901)
    at eg (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:10298)
    at eg (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:10209)
    at ey (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:11113)
    at https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:136:395
    at eg (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:10405)
    at e.generateAndInjectStyles (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:7470)
    at https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:13282
    at M (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:39:13708)
    at ix (https://bendigi-web.s3.ca-central-1.amazonaws.com/test/calculators.js:12:59036)

The source is a reputable company providing mortgage calculators for mortgage broker websites.

How can we fix this?
Was there a recent change on WIX to disallow third-party scripts?

Although I don’t know the specific cause at the moment, there is one thing I can say: It’s not better to expose the specific value of an API key on a site that anyone can access. There’s a risk of the API key being stolen.

If achieving this within an HTML Component (constrained iframe) is not possible, you might consider using custom elements to attempt the same thing.

The API key is just a sample, but I will replace the picture too. Thank you for pointing it out.

Can someone from WIX please comment here? We are actively looking for a way for WIX to unblock this, but there are no docs. @Support_Team

Thank you in advance.

1 Like

Hi there,

As a Canadian Mortgage Agent, having third party calculators such as the Canadian Mortgage App calculators on my website are imperative to my success as an agent. Not being able to supply my clients with easy to access and up to date calculators will be a detriment to my business. I also am aware that I am not the only agent that this affects as the majority of the agents I know are using WIX as a website platform and are being impacted in the same way.

2 Likes

Hi Ashleigh, thank you for your comment and your support of CMA. We may have a lead to a solution and we will not stop until we resolve it.

I don’t see any console errors and the calculator is loading fine for me. Perhaps a transient issue or a browser plugin causing the problem?