Comments (13)
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.
Thanks @petecooper. It looks like we are hold by jQuery file uploader that uses few removed methods.
from textpattern.
Yep, it looks like a csp conflict. Ironically, jQuery 4 intends to solve them.
from textpattern.
https://blog.jquery.com/2024/02/06/jquery-4-0-0-beta/
from textpattern.
Demo server is blocking something, not sure what.
from textpattern.
I can have a look - what can you see?
from textpattern.
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.
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.
I'll see how I can workaround it in the meantime, leave it with me for now.
from textpattern.
I'm a little perplexed - this appears to be solved, yet I haven't changed anything. Are you able to reproduce, @bloatware?
from textpattern.
@petecooper oops, sorry, I thought you have seen. We'd rather do some tests locally before pushing it online.
from textpattern.
Now seen ๐
from textpattern.
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)
- Edit file / missing file: SQL error and warning when pressing โsaveโ HOT 1
- Edit file panel - some HTML & layout issues HOT 1
- utf8_en/decode() are deprecated in PHP 8.2 HOT 7
- PHP 8.4 compatibility tracking HOT 4
- Articles with status 'Hidden' do not return a `404 Not Found` response when requested but a `200 OK` HOT 1
- RFC: would these third party libraries / helpers solve any problems? HOT 2
- Form names may contain hyphens or other 'strange' characters. Such form names do not work as 'txp::' shortcuts. HOT 7
- "Admin > Visitor logs" panel rendering gets caught in EasyPrivacy, a very popular ad blocking filter HOT 4
- Setting permlink_mode to '/title' and trailing_slash to 'No' causes reproducible 404 on single article view HOT 2
- Article write panel: Pluggable UI callback 'article_ui.extend_col_1' for volatile content missing HOT 1
- XMPP: Post to PubSub
- Preferences panel: problematic `labels` (disconnected from their respective input fields) HOT 3
- jQuery UI 1.13.3 is out HOT 1
- Update `CODE_OF_CONDUCT.md` to latest version
- MySQL 8.4 LTS compatibility tracking HOT 5
- Plugins panel elements on `dev` are wonky (potentially WIP?)
- escape="tidy, textile" not behaving HOT 3
- Prefs search feature HOT 6
- `blueimp/jQuery-File-Upload` is now archived HOT 4
- Consider updating the suggested CSP directives in `config-dist.php`: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textpattern.