Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

338
Views
After using axios in my portfolio app, it is not working and i'm receiving this "You need to enable JavaScript to run this app."

This is my axios version:

 "dependencies": {
"axios": "^0.27.2",
"react-router-dom": "^5.1.2",
"uuid": "^8.3.2"

}

This my main.py:

from colorama import Cursor
from flask import Flask
from flask_cors import CORS
import pymysql

app=Flask(__name__)
CORS(app)
@app.route("/api/Recommendation",methods=["GET"])
def data1():
db=pymysql.connect(host="localhost",user="root",   
password="password",db="portfolio",autocommit=True)
Cursor=db.cursor()
query1="Select * from recommendation Where onshowcase=True"
Cursor.execute(query1)
recommnedation_data=Cursor.fetchall()
results_data=[]
for recommendations in recommnedation_data:
    recommedation_obj={
        "id": recommendations[0],
        "cardtitle": recommendations[1],
        "cardbody": recommendations[2],
        "cardfooter":recommendations[3]
    }
    results_data.append(recommedation_obj)
Cursor.close()
db.close()
return {"issuccessful":True,"results":results_data}

Here I'm using axios after applying this code my site is not working, if I remove this it starts working again.

async componentDidMount()
    {
        const response= await axios.get("http://127.0.0.1:9001/api/Recommendation");
        this.setState({
            recommendation: response.data.results_data,
        });
    }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you're using chrome browser then follow this steps:

  1. Open Chrome on your computer.
  2. Click. Settings.
  3. Click Security and Privacy.
  4. Click Site settings.
  5. Click JavaScript.
  6. Select Sites can use Javascript.

Make sure it's enable

If still not resolved then refer this link

There are multiple reasons why you see You need to enable Javascript to run this app error.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!