GithubHelp home page GithubHelp logo

Comments (6)

ComfortablyCoding avatar ComfortablyCoding commented on July 30, 2024 1

Agreed, I will think about this a bit more to see optimal solution for both paradigms.

from strapi-plugin-transformer.

ComfortablyCoding avatar ComfortablyCoding commented on July 30, 2024 1

Support for both deny and allow list filtering has been released in v3

cc @mighty-phoenix

from strapi-plugin-transformer.

ComfortablyCoding avatar ComfortablyCoding commented on July 30, 2024

With the current version the only way to do so is to send the Strapi-Transformer-Ignore header on all routes that you do not want the transforms to run.

Once the next version is released you can utilize the denyList config setting to opt out of all apis that the transformation should not run on.

from strapi-plugin-transformer.

mighty-phoenix avatar mighty-phoenix commented on July 30, 2024

@ComfortablyCoding don't you think there should be a way to do it the opposite way also, i.e, mention which routes to work on? I have too many APIs being already used at many places. So I can't enable this change on my project, as it would lead to breaking changes, and sending the Strapi-Transformer-Ignore header everywhere Strapi APIs are being called is not a sane option in my case as you would imagine.
Thanks!

from strapi-plugin-transformer.

Montaser-BE avatar Montaser-BE commented on July 30, 2024

@ComfortablyCoding The deny list is not working.
This is my configuration:

`transformer': {
     enabled: true,
     config: {
       prefix: '',
       responseTransforms: {
         removeAttributesKey: true,
         removeDataKey: true,
       },
       denyList: {
        'api::service.service': true,
      }
     }
   },

from strapi-plugin-transformer.

ComfortablyCoding avatar ComfortablyCoding commented on July 30, 2024

@Montaser-BE Please open a new issue outlining

  • expected behaviour
  • what is currently happening
  • version of strapi
  • version of the plugin
  • current transformer plugin settings in plugins.js

And any other relevant debug info.

from strapi-plugin-transformer.

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.