Form the valid returned response so the Cross-Origin Request Blocked error does not appear.
Flask and Frontend
Allowing the resource
Report a typo
Write a program in Python 3
@app.route("/company")
def get_company():
response = jsonify({"company_data": "some_data"})
return response
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.