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

Bug reported: @font-face does not work when testing in local environment

  • When testing in a local environment @font-face fonts (using a local installed font) are blocked.
    "Inspect element" roprts in the console:
    Font from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access.

    I do not expect font files to be blocked when working completely within a protocol 'file://' environment.
    I reported bug DNA-43075 "Locally installed fonts are blocked when used in local environment".

    Using OPR/33.0.1967.0 (Edition developer), Windows 10 64-bits

  • I received a reply form Opera on my bug report.
    The bug is confirmed. It was an unintended side effect from another change.
    The solution is already implemented in the Chromium code and will be shipped in a future chromium release.

    Opera, thanks for the prompt and clear reply.

    @leocg
    I was aware of the thread you pointed to. According to me that was however a different issue unrelated to the fact that for me it only occured in a local testenvironment.

    Regards, a3ano

Locked