Questions tagged [web-development-server]

Use this tag for questions related to a Web-development Server, i.e. the backend/server side of a web application, when it comes to its development.

can be used in several situations, so please use one or more additional tags to better describe your case.

1473 questions
-1
votes
1 answer

Vue + Golang : Access to XMLHttpRequest at [Apiurl] from origin has been blocked by CORS policy: Request header field authorization is not allowed

I am beginner to Vuejs & golang. I got following error when I try to send Authorization token thorugh header while calling api from vue axios. Access to XMLHttpRequest at 'http://localhost:5000/greet/hello' from origin 'http://localhost:5500' has…
Pramod
  • 21
  • 6
-1
votes
1 answer

i want to perform auto click on a website?

Suppose, a website having a button and I want that, it automatically clicked every hour and reset the timer to be performed in the next hour same operation on the same button, in the website the button is given in input tag using the id_name I've…
-1
votes
1 answer

Javascript that makes every page better?

Has anyone stumbled upon or written any javascript code that can be included in practically any html page and serves to improve the site or add some functionality without interfering with the existing layout and logic? Open to any and all answers.
-1
votes
1 answer

MongoDB Atlas. trying to establish link with atlas DB

got a link from Atlas and copied it to terminal and entered password to establish connect as instructed in "Udemy". Please check the error shown in the terminal. enter image description here
Reddy Rohit
  • 25
  • 1
  • 4
-1
votes
1 answer

Flask - 404 not found while requesting URL

EDIT: I am using ATOM as my code editor This is my first flask app. This is the code for api.py: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' @app.route('/csi/') def cs(): return…
saucypanda
  • 37
  • 1
  • 8
-1
votes
3 answers

How do I add CSS and JS to my Node localhost server with Express?

I was trying to get a simple webpage loaded, but it just shows the HTML skeleton and has two errors for CSS and JS in the console. My code for index.js is below. I have tried using the static middleware for Express, but, still nothing. I have also…
-1
votes
3 answers

Django - 'elif'. Did you forget to register or load this tag?

I am developing a simple Django app. Is the piece of code below even valid? My code : {% if request.session.role is "Manager" %} {% extends 'manager_base_nav.html' %} {% elif request.session.role is "Agent" %} {% extends 'agent_base_nav.html' %} {%…
-1
votes
1 answer

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known. Error in laravel 8

When I am writing the php artisan migrate command then I have see something like this:- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known. (SQL: select * from information_schema.tables where table_schema =…
-1
votes
2 answers

How can I modify the .htaccess file so that I avoid having multiple copies of the same index.php file?

I am developing an e-learning website and there is a course preview page for each course on the platform. the file structure of the platform is something like https://example.com/courses/[course_id...]/index.php and the PHP code gets the course id…
-1
votes
1 answer

I want to add CSS to my php code.How to do it?

I am new with php and I was wondering how can I add css to my php code? I basically want to do form handling using php.So I want to collect the username and email and display it as soon as the user hits submit.But how can I render the text on php…
Khushi Zawar
  • 21
  • 1
  • 1
  • 6
-1
votes
1 answer

After the user leaves the server, how can i handle the forms?

Hey there im finishing my little app which is an online platform that sells tickets for events. Im currently having some problems when the user goes out of the page. I want to get rid of the data that he has already submitted. This happens when the…
-1
votes
1 answer

How to select students for teachers automatically in Django

This is my students class class Students(AbstractUser): mobile_number = models.TextField() My Teacher Class class Teacher(models.Model): students = models.TextField() How can associate 6 students to one teacher automatically in Django
-1
votes
1 answer

How does facebook calculate mutual friends?

In your opinion, how does facebook calculate mutual friends? Has it cached all mutual friends for each user? Or does it let MySQL calculate through a query each time it displays them? Or does it make a query to the database and then calculate from a…
M4rk
  • 2,172
  • 5
  • 36
  • 70
-1
votes
1 answer

VS code displays listing directory instead of serving the html file

I wanted to serve the Disp.html file through nodejs following the code I learned through a Youtube tutorial. const http = require("http"); const fs = require("fs"); const fileContent = fs.readFileSync("Disp.html"); const server =…
-1
votes
1 answer

AJAX request not calling python-flask method

I'm trying to call an AJAX request with XMLHttpRequest() from JavaScript to a flask server but the problem is that request.open() doesn't seem to work as the python function is not being called. The .js code is…