Git Product home page Git Product logo

Comments (9)

sylus avatar sylus commented on June 5, 2024

Has this been fixed?

I don't see this problem in Safari on Mac OSX. Should mention that chrome does give access control origin error ala http://stackoverflow.com/questions/5224017/origin-null-is-not-allowed-by-access-control-allow-origin-in-chrome-why

from wet-boew.

LaurentGoderre avatar LaurentGoderre commented on June 5, 2024

I didn't fix it yet. I'm working on it.

from wet-boew.

sylus avatar sylus commented on June 5, 2024

Hmm wonder why I don't see this problem :P Thanks for getting back :)

from wet-boew.

LaurentGoderre avatar LaurentGoderre commented on June 5, 2024

Not sure but I think both Firefox and WebKit browsers have an option to disable the cross-domain policy on local files. I'll try to not have to fall back to that but at least we have the option.

from wet-boew.

LaurentGoderre avatar LaurentGoderre commented on June 5, 2024

It seems it would take so much hassle to fix this only for local use.

The good news is that there is for Firefox (and maybe for Chrome or could be ported to Chrome maybe) a plugin to add CORS headers to each request. Obviously this causes some security risks but could probably used to disable cross-domain policies for local files only.

from wet-boew.

LaurentGoderre avatar LaurentGoderre commented on June 5, 2024

Firefox plugin: https://github.com/jo5ef/Force-CORS

from wet-boew.

LaurentGoderre avatar LaurentGoderre commented on June 5, 2024

@sylus what do you think?

from wet-boew.

sylus avatar sylus commented on June 5, 2024

Yeah there is no real solution for this. Your right that you can just pass in arguments or use plugins at least to make this work as expected. I guess if it works for production and can be well documented I can't see what else can be done?

I do worry about the users that will try this out locally and wonder why it is not working though. Hopefully documentation would address this.

from wet-boew.

LaurentGoderre avatar LaurentGoderre commented on June 5, 2024

Actually, for firefox, you don't need a plugin (plugins wont work). You can only go to the url about:config search for security.fileuri.strict_origin_policy and set it to true

from wet-boew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.