Giter Site home page Giter Site logo

Comments (13)

bloatware avatar bloatware commented on June 18, 2024 2

My local txp runs jQuery 4 beta, so far so good. Should we try using it in dev, to enlarge the testers pool? We'd switch back to jQuery 3 of course if txp 4.9 is released before jQuery 4.

from textpattern.

bloatware avatar bloatware commented on June 18, 2024 1

Thanks @petecooper. It looks like we are hold by jQuery file uploader that uses few removed methods.

from textpattern.

bloatware avatar bloatware commented on June 18, 2024 1

Yep, it looks like a csp conflict. Ironically, jQuery 4 intends to solve them.

from textpattern.

petecooper avatar petecooper commented on June 18, 2024

https://blog.jquery.com/2024/02/06/jquery-4-0-0-beta/

from textpattern.

bloatware avatar bloatware commented on June 18, 2024

Demo server is blocking something, not sure what.

from textpattern.

petecooper avatar petecooper commented on June 18, 2024

I can have a look - what can you see?

from textpattern.

bloatware avatar bloatware commented on June 18, 2024

Not able to save an article, for example. This shouldn't be directly related to jQuery 4 since it works on my localhost.

from textpattern.

petecooper avatar petecooper commented on June 18, 2024

Refused to execute https://dev-demo.textpattern.co/dev/textpattern/index.php?_=1716559654637 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.

Might that be it?

Edit: console output when saving a (new) article.

from textpattern.

petecooper avatar petecooper commented on June 18, 2024

I'll see how I can workaround it in the meantime, leave it with me for now.

from textpattern.

petecooper avatar petecooper commented on June 18, 2024

I'm a little perplexed - this appears to be solved, yet I haven't changed anything. Are you able to reproduce, @bloatware?

from textpattern.

bloatware avatar bloatware commented on June 18, 2024

@petecooper oops, sorry, I thought you have seen. We'd rather do some tests locally before pushing it online.

from textpattern.

petecooper avatar petecooper commented on June 18, 2024

Now seen ๐Ÿ‘

from textpattern.

phiw13 avatar phiw13 commented on June 18, 2024

I can of course reproduce the issue when the X-Content-Type-Options "nosniff" header is present. Once that is disabled (header unset โ€ฆ in textpattern/.htaccess), I still have saving issues on the Write tab (actually, no way to Save anything, old or new article) โ€“ both my old test site and a newish fairly default installation.

The Firefox console reports:

As a warning
The script from โ€œhttp://txpdev.local/textpattern/index.php?_=1716781530549โ€ was loaded even though its MIME type (โ€œtext/htmlโ€) is not a valid JavaScript MIME type.

As an error:
Uncaught SyntaxError: expected expression, got '<' (index.php 1:1)

I suspect there is some attempt at setting a response header that fails

โ€“^โ€“

All other panels behave correctly as far as I can see, images/files are uploaded or replaced, categories created, preferences saved. The few admin-side plugins active do what they are supposed toโ€ฆ etc. This testing with a fairly strict set of CSP directives (in config.php)

from textpattern.

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.