NewPath-Consulting / ez-wildapricot-webdesigner

EZ Wild Apricot Web Designer modifies CSS and the DOM with a simple CSV configuration file. It can be used to modify hard coded strings in Wild Apricot and provide support for multi-lingual websites.
https://newpathconsulting.com/watm
GNU General Public License v3.0
3 stars 0 forks source link

CSV Files Not Found (CORS error) #168

Open mDisna opened 6 days ago

mDisna commented 6 days ago

There appears to be a change to how WildApricot is storing files which is likely affecting all EZ Designer users. Links to uploaded files seem to be redirecting to a CDN, causing a 404 error since the CDN is not part of the CORS.

This is likely an issue that needs to be address on WA's side, but until they do some functionality may not be working correctly on the Designer.

mDisna commented 6 days ago

https://gethelp.wildapricot.com/en/articles/2847-version-8-7-0-release

mDisna commented 6 days ago

Unfortunately, adding cdn.wildapricot.com to the JavaScript whitelist does not fix the issue.

Error message: No 'Access-Control-Allow-Origin' header is present on the requested resource.

mDisna commented 4 days ago

@asirota Looks like the error is back.

On version 2.x, the CSV won't load and on 3.0 the JSON file won't load

Access to XMLHttpRequest at 'https://cdn.wildapricot.com/...' (redirected from 'https://newpathconsulting.wildapricot.org/resources/Theme/WildApricotTextManager/config.csv') from origin 'https://newpathconsulting.wildapricot.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

On 3.0, there is also an error when trying to get a screenshot of the page now, needed for the palette (Stackoverflow)

Error capturing the webpage: DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
    at https://ezdesigner.wildapricot.org/resources/Theme/WildApricotTextManager/wildapricot-textmanager.js
asirota commented 4 days ago

Can you open a ticket with their support?

mDisna commented 4 days ago

The issue loading files seems to have been resolved. The issue with the palette function remains. I have opened support ticket #1620485, but will remove/disable the palette function in 3.0 for the time being.

mDisna commented 15 hours ago

The issue loading the csv in 2.x has been resolved on WildApricot's end, however the issue still remains for the palette colours on 3.0.

asirota commented 15 hours ago

That's good news! Glad we didn't have to do anything on our need. The palette issue probably will still be something we have to fix On our end or just abandon it altogether.