ttscoff / cheaters

Customizable cheat sheet system for OS X
466 stars 108 forks source link

Fluidapp v.2 or Chrome or Safari would not load any cheatsheets #27

Closed ruslaniv closed 6 years ago

ruslaniv commented 6 years ago

I'm not able to load any cheatsheets either in Fluidapp 2.1 or in latest Chrome or Safari. It only loads the <li> elements, but clicking on any of them does not open the corresponding cheatsheet. I double checked the paths and toggled "Allow browsing to any URL" but still, no luck. But strangely enough, it works if I open the file in Firefox. screenshot 2018-10-18 at 10 53 15

ruslaniv commented 6 years ago

Just found an old version of Fluidapp (Version 1.8.6 (2331)) and Cheaters 2.1.2 still works in the old version.

alpayne commented 6 years ago

It's a CORS issue. You'll need to disable some browser security features or (better) use a local web server.

jquery-2.0.3.min.js:6 Access to XMLHttpRequest at 'file:///.../' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https..

ruslaniv commented 6 years ago

@alpayne Somehow I missed the section in readme about the local web server. Set up apache and it works just fine now. Although still wondering why it worked in older version of fluidapp without the need of a web server.

alpayne commented 6 years ago

Seems Fluid didn't enforce CORS previously.