Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

Is there any client-side storage that is safe from browser extensions?

LocalStorage, SessionStorage and IndexedDB can all be easily accessed by browser extensions through content scripts. Yes, the extensions need user permission, but users are dumb enough to give ...
Vlad Mashkautsan's user avatar
-1 votes
1 answer
33 views

API call from NextJS app throws a 403 if call is from client component, but not from server component

Like the title says, when I make a request to an external API from my client side component, I get a 403, but if I make it from a server component, it works just fine. The reason I need to make the ...
codian's user avatar
  • 17
2 votes
0 answers
23 views

Should i use the .0.mts file in Astro for typing client-side JS?

I'm querying for a web-component defined in a separate Astro component file as set out by this pattern. I'd like typing and so I tried exporting the web-component name in the client-side JS. VSCode ...
Brendan's user avatar
  • 19.3k
0 votes
1 answer
117 views

How to configure Rollbar to integrate with next.js 14 using app routing?

I'm currently in the process of configuring Rollbar to integrate with Next.js, however the documentation on Rollbar (https://docs.rollbar.com/docs/nextjs) seem to be slightly out of date as it refers ...
User7007's user avatar
  • 361
0 votes
0 answers
77 views

Handling Server-Side Image Rendering with Sanity Client in Next.js App Router: Overcoming Client-Side Mapping Challenges

I am converting a Next/Sanity project to the app router. The image component needs to be rendered on the server side because it makes use of the sanity client and the boilerplate includes the import '...
Simon Gowing's user avatar
0 votes
0 answers
14 views

How to generate Lighthouse report in GITlab using authentication

I need help in generating Lighthouse report in GILlab using authentication, how we can pass username/password while generating lighthouse in Gitlab pipeline. can anyone worked on this or can provide ...
Saurabh's user avatar
-2 votes
1 answer
52 views

What is the best scalable way to implement a ContextProvider to fetch and filter data [closed]

I have been working on a project that requires fetching a bunch of data and provides multiple ways to filter/search the data, and I though about keeping filtering on the server-side considering I'll ...
Abdullah Shekfeh's user avatar
-1 votes
1 answer
64 views

Is Google Picker API affected with deprecation of client side javascript libraries?

I am looking to implement Google Picker modal into my product. However, while I was going through the documentation, I came across a page which mentions that the JS libraries are being deprecated. ...
InfiniteCoder's user avatar
4 votes
3 answers
1k views

nextjs "Error: Unsupported Server Component type: undefined"

My code is like below 'use client'; import { UserGroupIcon, HomeIcon, DocumentDuplicateIcon, } from '@heroicons/react/24/outline'; import Link from 'next/link'; import { usePathname } from '...
Kundera's user avatar
  • 315
0 votes
0 answers
46 views

Blazor PWA with shared database between all uses in offline mode

A requirement for our Blazor PWA application is all data persisted on client computer must be shared between all users on that machine. Is there a way to share data between all uses on client machine ...
Tri Ngoc Nguyen's user avatar
0 votes
0 answers
70 views

Trying to figure out how to keep a heartbeat interval open from javascript to discord on a website to read messages?

I'm new to javascript development and I'm testing something where it can read messages on a certain discord server. The code I have now works for like 3 seconds when the website opens. I'm not sure ...
TheEmeraldEnd's user avatar
2 votes
0 answers
162 views

Why am I getting prerender errors in Next.js 14 build?

I am encountering an issue when running the next build command on my Next.js 14 application. The build process fails with the following prerendering errors: I have checked the links provided, but I am ...
riki's user avatar
  • 1,705
1 vote
1 answer
48 views

Storing a Synchronous Encryption Key securely on the Clientside

I am building a web app which uses Sign in with Apple for the normal authorization and login. After signup the user should create a passphrase which is enhanced via a KDF and acts as a symmetrical key ...
t3lls's user avatar
  • 33
0 votes
0 answers
239 views

Docx.js: Use patchDocument on client side

I'm trying to fill a word template with data from JSON, and found this amazing library (Docx js), it's documentation says that works on server side and client side, until the most examples shows ...
Joseph Aguilar's user avatar
1 vote
0 answers
131 views

Handling of user-provided API keys in a client-side app (no server). Secure?

I'd like to create a simple JavaScript app that asks a user for their API key from a third-party service and makes it easier to use the service with a better GUI. There will be no server-side code on ...
Anton Zemlyansky's user avatar
0 votes
1 answer
167 views

Handling localStorage in Next.js 14 with SSr and Sequelize

I'm using Next.js 14 for my project. One of the features of the site is to add products to favorites, where the product IDs are stored in localStorage. In the Page.jsx file (located at /favorites), I ...
Mauricio De Oliveira's user avatar
0 votes
0 answers
73 views

How to dynamically add CDN that user wants to my React Project and use it in a client side editor

so here is the thing I have a code editor in my React app ( Monaco - editor ) now I want to load the CDN that the user gives me ( think about it like the user enters his desired CDN in an input ) and ...
Hamid Kamyab's user avatar
0 votes
1 answer
41 views

PDF encryption image color corruption: should i encrypt hexa string inside an array value?

Here is my obj 17 encrypted, the ColorSpace value is the same as before encryption, so should i encrypt the hexa value inside the array value ? 17 0 obj << /Length 5696 /Subtype /Image /Width ...
Mustapha BOUFARA's user avatar
0 votes
0 answers
66 views

how can i enable the next button if one or more checked boxes are selected and disable if none are selected in ServiceNow

i am working on a ServiceNow custom widget in which i am getting all the data from backed in an array. i want that if user doesn't checked any checked boxes the next button should be disabled. if user ...
DIY Makers's user avatar
0 votes
0 answers
136 views

Dynamically rendering content inside the header component with Next.js

I have the following setup as the layout for an application in Next.js using the app router. The problem that I have that I am unable to find a solution which doesn't give an error inside the header ...
Ákos Kovács's user avatar
0 votes
1 answer
64 views

Webpack over CDN import to vue js The requested module 'url' does not provide an export named 'default'

Hope you're doing well. I'm currently working on a JavaScript module that I plan to load via a Content Delivery Network (CDN) using the URL https://x.com/my-script.js. However, I've hit a snag despite ...
Sabri Mahmoud's user avatar
0 votes
1 answer
290 views

Roblox default animate script not working on NPC

So I'm trying to use the default Roblox "Animate" client side script on an NPC and when I try it, none of the animations load at all When I try to run the game with the code, nothing happens ...
Ministry Ray21's user avatar
0 votes
0 answers
41 views

Hydration error, difference between client and server side

What can i do to avoid the cleint side and server side differences/ hydration error? I want to initalize the state of carProducts to the localstorage, but this result in the hydration error. I tried ...
Renato's user avatar
  • 19
2 votes
1 answer
693 views

docx.js: How to use document patcher on client side

I'm trying to generate docx file using the docx javascript library but only on the client side. The generation of new documents works like charm, but I would like to patch a document using the patcher....
rcheetah's user avatar
0 votes
1 answer
41 views

The quiz Id is not getting fetched in Angular

Hi I am trying to fetch Qid from Server side and in postman it is working fine but in angular not coming properly The problem is only appearing when trying to fetch Quiz Id others like category ID and ...
Swapnil Kashish's user avatar
0 votes
2 answers
257 views

"localstorage is not defined" nextjs14 "use client" running in server side

I was configuring the context in Tailwind for a Next.js 14 website, and I just wanted to provide a global theme configuration for my project. So, I created the ThemeContext and added the 'use client' ...
Matheus Felipe Vieira Santiago's user avatar
0 votes
0 answers
137 views

QuickFix in Custom Language(Xtext) using Language Server Protocol

I am very new to Language Server Protocol. I have all the xtext related files ie. content assist, validation, quick fixes etc in eclipse and our client is intellij. I want to implement quickfixes ...
A.Goel's user avatar
  • 101
1 vote
1 answer
5k views

Laravel Inertia check current route In JSX file?

I need to check current route in one of my .jsx files to display a specific component, is there a way to imitate Laravel's Route::is() feature? For now I do the following: // helpers.js export ...
dogakorkmaz's user avatar
0 votes
3 answers
153 views

How to save a two dimensional array in a json file using javascript?

I would like to save a two dimensional array consisting of one column of indicators (string) and one column of values (integer our double) in a file that has JSON format. It somehow works but not the ...
Wolfram Scharnhorst's user avatar
0 votes
1 answer
105 views

My pdf encryption code encrypt stream but not string, what kind of string should i encrypt and in what encoding?

I tested this code to test by text fields: PDFWriter.prototype.encrypt = function (ref, obj, pdfSecurity) { let encryptedData; const encryptFn = pdfSecurity.getEncryptFn( ref.objectNumber, ...
Mustapha BOUFARA's user avatar
0 votes
1 answer
417 views

Libman VS Nuget Packages for client side libraries

What is the need for Library Manager(Libman), if we can install client-side libraries from NuGet packages directly? I tried both but can't differentiate between them. Please point out the differences ...
Anusree Sunil's user avatar
0 votes
0 answers
64 views

How to play with different voices in mespeak.js

I am currently working on mespeak.js I want to use a client side library that helps me convert text to speech without using any installed voices. mespeak.js helps to work on this problem but has very ...
Vatsal Rathod's user avatar
1 vote
0 answers
112 views

Next.js project works locally but throw an error on the server

The project works fine when run locally. But when I deploy it to the server with docker, some components give an error like "Application error: a client-side exception has occurred (see the ...
Eyup Canbudak's user avatar
3 votes
1 answer
1k views

How are client components handled in terms of rendering in React Server Components paradigm,?

I comprehend that server components undergo complete rendering on the server, and they aren't included in the JS bundle transmitted to the client. Additionally, server components don't undergo ...
109 Kunal Khatri's user avatar
1 vote
2 answers
2k views

Handling simple hydration mismatch after fetch in Nuxt 3

I am making a simpe "email confirm" page. It gets confirm key from URL, sends a POST request to API which returns true or nothing. If key is correct the API removes it from database and ...
CMTV's user avatar
  • 2,831
0 votes
0 answers
46 views

How do i set the different redirect options for two different values in button?

I've made a sign up form to register a user whether he is a doctor or patient for a website. and this is the html code i used for form front end <label class="text-left" >Are you a:&...
VishIsHere26's user avatar
0 votes
1 answer
253 views

When asp.net CheckBox control is changed, how to fire client side AND server side events

I have an asp.net Checkbox inside a gridview. It has some javascript in OnClick to confirm that the operator wishes to proceed. It also has some server side code on the OnCheckedChanged event. The ...
Eric Staples's user avatar
0 votes
1 answer
134 views

Client side securing token vulnerability circular dilemma

I am sorry but this question needs to be long so you can understand the problem and it is absolutely relative the size of my problem, I am seeking web security experts opinion so thank you for your ...
sabri mahmoud's user avatar
2 votes
1 answer
2k views

NextJS 13 Server Components vs Client components in complex UI

I have some doubts on overall architecture of complex, data driven UIs. Taking the usual blog page example with a sidebar, header and logo where the idea is that: Header and logo are static and can ...
Chris's user avatar
  • 107
0 votes
1 answer
177 views

Neoload to collect client side performance metrics like Google Lighthouse

For an application hosted on Azure cloud. We are trying to get a tool set which is capable of performance testing client side and server side. We are considering Neoload for server side testing & ...
Raxon's user avatar
  • 33
4 votes
2 answers
266 views

Is it safe to use the `Function` constructor to validate JavaScript syntax?

I would like to verify (client-side) that the user has entered valid JavaScript code. Pulling in a Javascript parser (e.g. Acorn or Esprima) is a relatively heavy dependency. However (if CSP is not ...
cloudfeet's user avatar
  • 12.8k
0 votes
2 answers
74 views

What should be an ideal Jmeter Testing Enviornment with an application hosted on a server?

1.We have an Open Finn Application hosted on a US server. 2.We are using Jmeter to get the performance of different modules like login logout time. 3.While recording and running the jmter test plan ...
shivam 's user avatar
0 votes
1 answer
649 views

Client and server-side out differ when working with user who is logged in (hydration error)

I'm facing React's hydration error, which - according to the documentation - is caused by "using browser-only APIs like window or localStorage in your rendering logic". This probably ...
NotX's user avatar
  • 2,315
2 votes
0 answers
889 views

Decoding euconsent-v2 cookie client side

I and my team are deploying a new web analytics solution to a client's web site. The analytics tool is deployed via a tag manager and analytics tracking is executed client side. The client's using the ...
Alberto De Caro's user avatar
0 votes
0 answers
204 views

Next 13 client component using SWR not refreshing every reload [duplicate]

I'm building a weather app with Nextjs 13 and im rendering the page using "use client" and SWR. When I deploy to vercel the page doesnt fetch the data on reload, instead it acts as a SSR ...
Matoko93's user avatar
-1 votes
1 answer
556 views

Getting data from a backend server side file and displaying it on a client side html site

I have an AWS server that continually runs a program on the background updating a txt file. I want to make calculations with the latest file data and display it on an html page. (I will also be using ...
SwanPineapple's user avatar
0 votes
1 answer
62 views

How do i send a function from the server to the client

Im new to post requests in NodeJS & ExpressJS, Im trying to pass in a function (not the function's result) to get called in the client, I have this listener and this post request (Im trying to ...
ContentGamer's user avatar
1 vote
1 answer
438 views

OAuth + PKCE expects the code verifier to be sent from the client-side, so isn't the code verifier exposed?

I am implementing OAuth2 with authorization flow + PKCE for a single page web application. My question is, in the flow described, it is stated that the code verifier is sent to the authorization ...
AIMLA's user avatar
  • 11
1 vote
1 answer
488 views

ReferenceError: SharedArrayBuffer is not defined while using ffmpeg.wasm

<!DOCTYPE html> <html> <head> <title>TikTok Live Downloader</title> </head> <body> <h1>TikTok Live Downloader</h1> <label ...
Hima's user avatar
  • 13
0 votes
0 answers
24 views

which script dont need any software setup or config

Apart from Batch script, which script I can use that don't need installation or configuration at client system and can be invoked from windows visual studio? powershell python etc. needs installation. ...
Peeyush's user avatar
  • 39

1
2 3 4 5
48