• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Allow “cross-origin” XHR requests on the local file system (`file:` protocol)

    Suggestions and feature requests
    1
    1
    1200
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      There use to be such an option in the configuration of Opera Presto. Chrome has a corresponding command line option. There exist something similar with Firefox, and I know Webkit is able to.

      It's now common to use HTML+JS+CSS for page more or less used as application or rich interacting documents. Often it relies on XMLHttpRequest. It's commonly used as an example, with search options of documentation systems (if I'm not wrong, Sphinx use it), and I did use it to edit enriched local documents which can't be any longer viewed correctly with Opera Blink.

      Additionally, saying “cross origin” for the file: protocol, is a bit strange, as there is only one origin for this protocol.

      I'm aware a page downloaded from the internet, containing such a request to the file: protocol, may present an issue which may be exploited, but this can hardly an issue with home made document and not so likely an issue with documents from a trusted source.

      I would suggest either one of this proposal: have an option (which may be off by default), to allow XHR on the local file system, at the user's discretion, or treat the whole file system as a single origin. This may be a combination of both: the latter may be made an option as the former is.

      Reply Quote 1
        1 Reply Last reply
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-