Giter VIP home page Giter VIP logo

Comments (6)

adlawson avatar adlawson commented on August 15, 2024

I think this is actually a bigger change than the redirect. It appears that there are further changes, and a possible introduction of a CSRF Token that stops the tracklist working.

I'll continue to investigate and try to get this fixed. I'm confident it's fixable, but I just need to work out what to change in the request.

from mixcloud-tracklist.

zygisber avatar zygisber commented on August 15, 2024

from mixcloud-tracklist.

adlawson avatar adlawson commented on August 15, 2024

Yeah this is a change by Mixcloud. I'm just investigating their APIs and considering how it's changed compared to how it used to behave. These are internal APIs used by Mixcloud so I doubt we'd find any public documentation about it.

from mixcloud-tracklist.

adlawson avatar adlawson commented on August 15, 2024

I've now proven that all I need to do is send the cookies with the request to the API. It's absolutely possible to do it, but I'll try a few different ideas before complicating the extension with an event/background script.

from mixcloud-tracklist.

zygisber avatar zygisber commented on August 15, 2024

from mixcloud-tracklist.

adlawson avatar adlawson commented on August 15, 2024

@zygisber I've used fetch rather than the request library to send the requests now. This way the browser can slurp up the cookies and send them without much intervention.

If that hadn't have worked, I'd have had to go down the route of using chrome.cookies in a background script and sending messages to the content script (where the extension runs). Fortunately I don't have to do any of that 🎉

from mixcloud-tracklist.

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.