Giter Club home page Giter Club logo

Comments (9)

danurbanowicz avatar danurbanowicz commented on May 6, 2024

Have you tested this by deploying the demo site to Netlify to see if it happens? I'm unable to reproduce this error.

https://app.netlify.com/start/deploy?repository=https://github.com/danurbanowicz/eleventy-netlify-boilerplate&stack=cms

Please provide more info if you can and I'll have a closer look.

from eleventy-netlify-boilerplate.

psandtner avatar psandtner commented on May 6, 2024

Yes, I just tested with a fresh deployment. Hm... I can provide you with some screenshots to show how it looks like.

edit_article_preview

safari_console

Thanks for you help!

from eleventy-netlify-boilerplate.

danurbanowicz avatar danurbanowicz commented on May 6, 2024

The CORS error is probably specific to your version of Safari, as I'm unable to replicate it with any of my browsers. And as I didn't do the post preview templates PR myself, I'm unfamiliar with how it's been built.

Not sure if this will work, but if you're interested in investigating this yourself, you could try implementing Netlify's proxy redirecting by adding something like the following in your netlify.toml to proxy requests for those unpkg modules through Netlify, thereby - in theory - bypassing the CORS policy on unpkg.com

[[redirects]]
  from = "/unpkg/*"
  to = "https://unpkg.com/:splat"
  status = 200
  force = true
  headers = {Access-Control-Allow-Origin = "*"}

The final 2 errors in your screenshot are caused by Netlify CMS looking for Git Large File Storage settings and these errors, although a bit worrying, are apparently normal.

The missing favicon.ico 404 has been fixed.

from eleventy-netlify-boilerplate.

psandtner avatar psandtner commented on May 6, 2024

Problem also occurs using Chrome or Firefox:
firefox_console

What the hell is "hastebrot.static.observableusercontent.com"?

I just tried your "redirects"-suggestion. To no avail...

from eleventy-netlify-boilerplate.

danurbanowicz avatar danurbanowicz commented on May 6, 2024

It might be worth opening an issue at netlify/netlify-cms as it's not obvious to me what is causing this error and I'm unable to reproduce it and therefore fix it.

Also check your firewall, ad-blocker, proxy etc if required in case it's something really simple causing the error.

Anyway, if you get any closer to solving this, please let me know!

from eleventy-netlify-boilerplate.

psandtner avatar psandtner commented on May 6, 2024

Thanks for your help, Dan! I will probably do that.

from eleventy-netlify-boilerplate.

danurbanowicz avatar danurbanowicz commented on May 6, 2024

Also, if you need a temporary fix to this error, you could copy and host the offending module(s) locally in your Netlify project instead of via unpkg.com

from eleventy-netlify-boilerplate.

psandtner avatar psandtner commented on May 6, 2024

-import htm from "https://unpkg.com/htm?module";
+import htm from "/admin/preview-templates/htm.js";

in

admin/preview-templates/page.js and
admin/preview-templates/post.js

Preview is working again!

from eleventy-netlify-boilerplate.

danurbanowicz avatar danurbanowicz commented on May 6, 2024

OK, good to hear you got a temporary fix working at least.

I'm closing this issue for now but let me know if you want to re-open it.

from eleventy-netlify-boilerplate.

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.