1,440 questions
Advice
1
vote
4
replies
121
views
Which design pattern should be used for the backend of a web application?
Description: I am building a web app, let's say about an organization for approving participation in a free service. There will be the following roles:
Organization employee
Citizen
Administrator
...
Advice
0
votes
1
replies
70
views
Most Underrated Frontend Best Practice for Performance?
In modern front-end development, there are many techniques to improve performance like lazy loading, code splitting, and memoization.
In your experience, which underrated best practice has made the ...
0
votes
1
answer
182
views
How to redirect requests locally from one domain to another on mac
I need to test accepting requests from a custom domain to my local web server.
The idea is I have a main app domain
main-app.com
I provide a subdomain for users
user-1.main-app.com
Then the user can ...
1
vote
0
answers
48
views
How to update and render Bokeh plots immediately, without reloading, using AJAX JS?
So I am working on a dashboard in which there are bunch of KPIs and Graphs. The dashboard have filters that when applied, filter whole dashboard. Before I was totally reloading the page and every ...
1
vote
1
answer
192
views
Azure App Service can't access Search Service index anymore. What configurations or permission do I need to set?
I'm using an Azure App Service with a Python backend, and I want to access a Search Service indexer (in the same resource group) to get its status and then run the indexer from my App Service. I'm ...
0
votes
0
answers
630
views
Elementor shows “Unexpected token '<', '<br /><b>'... is not valid JSON” after updating XStore et-core plugin
I’m getting this error when I try to open the Elementor editor:
Error: Unexpected token '<', ""... is not valid JSON
It happens right away, and the editor won’t load.
I'm using the XStore ...
0
votes
0
answers
39
views
cookie related issue in MERN stack web app deployed on Render
I am having an issue about cookies in my mern stack project I use passport local strategy for auth and express-session for session storage and database is deployed on mongodb atlas, actually ...
0
votes
3
answers
62
views
Why is my server not logging a login session?
For some context: I'm trying to make a basic login system. At the moment, signing up works with no problems. Logging in also seems to be okay, it makes a connection with the database properly - ...
0
votes
2
answers
71
views
post route is not working in my express js project
Here is the code for the index.js of my expressjs project. I'm new to Node.js and trying to understand how to develop a web app using MERN Stack.
import express from "express";
import ...
1
vote
0
answers
326
views
Nextjs 15.2.2 Crashing on Fresh Install
Problem
I installed Nextjs using npx create-next-app@latest from Nextjs's website. I pasted the command into my terminal and got a font error. Then, after using GPT-4o and Perplexity to troubleshoot ...
1
vote
1
answer
67
views
Azure WebJobs with WordPress WebApp?
I am building a webpage through Azures web app in WordPress. I want to have one of my pages allow the user to upload a file, that file go to a python script which returns and image based on that file ...
0
votes
1
answer
156
views
Response was blocked by CORB (Cross-Origin Read Blocking) : Appwrite + React
I am using appwrite as backend for a blog website. In it I am storing images and fetching them using their id to display.
However the browser is showing CORS restriction due to which image is not ...
0
votes
1
answer
106
views
Receive Endpoint in SMS Gateway not detecting Peer to Peer messages
I am using httpSMS (also tried SMSGateway) to turn my phone into a gateway that can send and receive SMS.
The "send" functionality is working fine. I make a post request to an endpoint and ...
0
votes
1
answer
77
views
Where does "res.send" go when fulfilling a post request from within a default form?
Let's say I have a form (written in JSX) being sent to an Express server:
<form id="log-in-form-itself" action="/submit-form" method="post">
<label htmlFor=&...
0
votes
2
answers
130
views
Python "forgets" variables? (between requests in web server context)
I am working on a project that at its core, runs a server for a remote monitoring type website to monitor some data from a separate dashboard system on a car over LTE. The car will send its speed and ...
1
vote
1
answer
43
views
trouble dynamically changing the value of parameter in js
What I want is: when the mouse enters the body of the website, the cursor becomes visible; and when it is out of the webpage, it should not be visible.
I'm trying to update the values passed to the ...
1
vote
1
answer
3k
views
How to fix "paths[0]" argument must be of type string. Received an instance of Array" error when introducing Mustache partials with ExpressJS?
index.js logging the view paths to ensure partials are visable
import express from 'express';
import bodyParser from 'body-parser';
import path from 'path';
import { fileURLToPath } from 'url';
import ...
0
votes
1
answer
149
views
Flask program runs inconsistently and doesn't redirect pages correctly
I cant understand what's going wrong I leave the program working the next time it's not it just gives me an internal server error I try fixing things my self I try using chatgpt from the first look it ...
0
votes
1
answer
26
views
Trying to connect input devices to a DB to an output device on the web
Background: making a choose your own adventure type game, but as a website. Based on choice A or B (only 2 choices) the story will go that direction.
The setup:
Let's say 5 phones, used for inputs
Big ...
1
vote
1
answer
41
views
ERROR in ./src/App.js 55:65-72 export 'BpkCode' (imported as 'BpkCode') not found
ERROR in ./src/App.js 55:65-72:
export 'BpkCode' (imported as 'BpkCode') was not found in
'@skyscanner/backpack-web/bpk-component-code/src/BpkCode' (possible
exports: default)
I am facing this error ...
0
votes
0
answers
68
views
How to Implement a Global Filter in Laravel That Persists Across Multiple Views?
I am building a laravel application to aid in reviewing my trades and I want to implement a global filtering bar that maintains its state across multiple pages.
For example, if I filter for trades in ...
1
vote
0
answers
74
views
Getting an error "Target class [admin] does not exist"
Basically I'm building a pet adoption site and now getting an error which says "Target class [admin] does not exist" when my admin user account is trying to approve 'adoption request' of any ...
1
vote
1
answer
54
views
Simplifying URLs for PHP Web App in Apache: Removing 'public' Folder and Pages Path
Here is the folder structure of my PHP web app. I use Apache on localhost to run the PHP project. I have two issues:
When I run the project using the URL http://localhost/CALCULATOR/public, I would ...
0
votes
1
answer
38
views
No text except heading on counter website error [duplicate]
I'm trying to create a simple counter website using HTML, CSS and JS (Hypertext Markup Language, Cascading Stylesheets and JavaScript). I use this HTML code:
jswebsite.html
<!DOCTYPE html>
<...
0
votes
0
answers
289
views
Is encrypting the access token before sending it to the frontend and decrypting it on the backend a secure approach?
I'm a new developer and curious about security best practices. If, before sending an access token to the frontend, it is encrypted on the backend and then stored in localStorage, and later decrypted ...
0
votes
2
answers
181
views
How to display API response in HTML
While I fetched the data successfully, I cannot manage to display the data to an HTML efficiently.
The only way that that it works(how far I've gotten) is with two endpoints. Where one endpoint is to ...
1
vote
1
answer
40
views
ServiceStack Blazor Modal Not Opening for Editing Existing Player DTO
I'm working with ServiceStack Blazor and using a standard modal provided by the framework to handle CRUD operations in a Blazor web application. The modal opens as expected when creating new records ...
0
votes
0
answers
42
views
How to manage multiple instances of the same subservice type with unique separators in a dynamic JavaScript table?
I am working on a web application where users can add multiple instances of the same subservice type to a table. Each instance should create a new separator with the subservice name in the table. The ...
-1
votes
1
answer
62
views
node.js API not loading environment variable correctly for azure cosmos mongoDB connection string
I have a microsoft azure database and have an api made with typescript to run on a node.js server, when i tested the api the night before all was working, wake up this morning and i keep getting an ...
0
votes
1
answer
55
views
Using OAuth2.0 to authenticate users
I am trying to create a small app that will use the Spotify API. Because it's meant to be small I don't really want to add any authentication on my end but I still would like to have "sessions&...
0
votes
1
answer
50
views
How do you use the query context parameter(of getServerSideProps), after next js 13?
I am new to web development and am following this tutorial:its pretty old and hence uses older version of next js. He uses getServerSideProps which is depreciated, and throws an error when I use it in ...
0
votes
1
answer
30
views
My js script uses 'require', which I can't use in browser. Will changing to 'import' fix this and when should I avoid 'require' altogether?
I am setting up a webhook receiver just to learn the ropes. I have run a number of tests that work fine with node. Now I am attempting to put this receiver on a publicly hosted page so that I don't ...
1
vote
1
answer
63
views
Focus on the search input field whenever showSearch state is true
I have a problem trying to focus on the input field whenever a state showSearch state is true. I am using useRef and useEffect to achieve this. So, whenever showSearch flag changes, i run useEffect ...
0
votes
1
answer
234
views
How to Run a Dash App Without Crashing During Edits?
I am new to dash and currently working to understand it. I have been able to get my first app up and running, but every time I edit it the server crashes due to a syntax error. I've worked with Flask ...
1
vote
1
answer
84
views
how to fix bad request error in platform.sh
im learning web deployment using platform.sh. i pushed my files to platform.sh by command "platform push" and then supposed to get my live url by commanding "platform url" i got ...
0
votes
1
answer
69
views
i was installing typescript on my macos m2 pro ...and after i pasted command ...i got some errors what should i do
I am trying to download and install typescript for AngularJS on my MacOS M2 using the npm i typescript command, but I am getting the following errors:
npm ERR! code EEXIST
npm ERR! syscall mkdir
npm ...
9
votes
0
answers
993
views
Why is Local Override for Response Headers (e.g. Chrome Devtools) not applied to Pre-Fetch OPTIONS Response Headers?
Was trying to fix some of my local dev setup today and didn't want to fuss about with server configs just to make CORS work locally - so finally delved into just overriding headers when developing on ...
-1
votes
1
answer
620
views
Fernet key must be 32 url-safe base64-encoded bytes error despite correct key length
I'm working on a Python project using aiohttp and aiohttp_session with EncryptedCookieStorage for session management. I'm generating a Fernet key in a batch script and passing it to my Python ...
0
votes
1
answer
43
views
I encountered an error when running the git push -u origin main command in the command line. The error message is:
I have just completed my React JS project and I wanted to host it on GitHub, but once I created the repo without adding a README file, in the command line while writing the git push -u origin main ...
0
votes
1
answer
30
views
Trying to fetch different data when and re-render the new data through a map function when a button is clicked
I am very new to react, and am trying to fetch data and map it onto the screen each time certain button is clicked:
const fetchMessages = async (num) => {
const response = await fetch([url] ...
1
vote
1
answer
441
views
Well I am trying to build a webapp using flutter and serverpod . but it throws me error of return imagecodecurl
I am using flutter and serverpod to build a webapp . And it has lot of images in it's ui .
Everytime i run it throws me like error like this:
C:/Users/AppData/Local/Pub/Cache/hosted/pub.dev/...
0
votes
1
answer
611
views
Not able to select package manager while setting up turborepo project
enter image description here
When I use npx create-turbo@latest
it asks me what package manager I want to use then it shows me these four options but it says I don't have any of those installed. How ...
1
vote
0
answers
31
views
How to load data into Kendo grid using ajax call?
I am creating a spring boot application to book flights. I have defined a controller to retrieve flight details from database:
@Controller
@RequestMapping("/home")
public class ...
1
vote
3
answers
1k
views
Express.js server .get() not responding on localhost
I'm currently learning web development and working with Express.js and Node.js. The issue I'm encountering is when I try to access http://localhost:3000/ or http://localhost:3001/ (I've also tried ...
0
votes
1
answer
40
views
Dynamically display images in a webpage as it's being generated? using flask and python?
so i have been trying to create a webpage that downloads the media from my telegram account an displays it in the webpage. what i want is it as the images are being downloaded from the server i want ...
1
vote
1
answer
62
views
How to join two tables in Spring boot?
I am creating a flight booking application using spring boot. It has two entities: User and Flight
User entity:
@Entity
@Table(name = "User", uniqueConstraints = @UniqueConstraint(...
-1
votes
1
answer
146
views
Website files not showing up on localhost, instead showing dashboard
I'm currently developing a website using Sublime as my IDE and PHP, CSS, JS, and HTML as the programming languages. I've set up a local development environment using XAMPP on Windows 11.
My website ...
-1
votes
1
answer
541
views
My website is in laravel 11 but it is not working on live server hostinger
I tried everything like adding .htaccess file in public_html so that it access public/ folder or change location of index.php but this error is not solving.
0
votes
1
answer
129
views
Why is my Website navigation working on live server but not when deployed
For my school project we are adding navigation to simple websites with javascript. I'm using Visual Studio Code and live server extension. When I run the website through live server extension it works ...
0
votes
1
answer
79
views
In my code link.url is changing but pathName is not changing?
In my code link.url is changing but pathName is not changing. I wanted to give an animation transition to my website, but it is not supporting as the pathName and link.url are not matching.
"use ...