Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
Is passing a JSON between Javascript and Flask a secure way to convert a JSON to a CSV in flask?

On my flask app I want to create a feature so a user can query the database, have the browser display the results in a table and then download it in a csv.

Is the plan I have below secure? Would end users be able to manipulate the JSON?

My overall design plan to accomplish this is as follows in pseudocode:

  • (Python) pulls Query from database and puts results in JSON using JSONIFY

  • (Python) returns JSON to Javascript file

  • (Javascript) Displays the JSON in an HTML table

  • (Javascript) User clicks button and Javascript sends JSON to flask endpoint

  • (Python) Flask endpoint converts JSON into CSV

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Re-sending the JSON to the Flask server seems a useless waste of bandwidth (since the server already has this information). The Flask server should be able to generate a CSV representation, directly from the database query, for example using a csv.writer or csv.DictWriter object.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda