Skip to content

Conversation

@gary-kim
Copy link
Member

As it turns out, we still need to use the global jQuery else we get CSRF errors. 😢

Especially since the global jQuery is being deprecated (nextcloud/server#19386), we need to move away from using it ASAP but this is a quick fix so we can get 0.1.5 out and fix the unable to unpack issue. Let's switch to using @nextcloud/axios before the release of Nextcloud 19.

Signed-off-by: Gary Kim <gary@garykim.dev>
@ChristophWurst
Copy link
Member

Alternatively you can copy https://github.com/nextcloud/server/blob/master/core/src/jquery/requesttoken.js and still use your own jquery

@tacruc
Copy link
Collaborator

tacruc commented Feb 16, 2020

@gary-kim what do you think?

@gary-kim
Copy link
Member Author

gary-kim commented Feb 17, 2020

There's a couple other features from core jQuery that's being used so that needs to be changed first so I think it'd be better to postpone that for a little bit. I just really want to get 0.1.5 out.

TypeError: $.ui is undefined script.js:1530:13

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

@tacruc tacruc merged commit e6aab6b into master Feb 17, 2020
@tacruc tacruc deleted the fix/292/csrf-issue branch February 17, 2020 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants