General input on relational db schema
selecting where json field in a json type column in MySQL
Migration of J2EE to spring boot application
Laravel 10 Migration
Throwing Exceptions
Architecture Question (not code specific)
error when use router handler in next js
Can I change the jquery to plain js and how do I send the errors back to the form
The post method is not supported for this route. Supported methods: GET, HEAD. for login page
<input type="email" name="email" placeholder="Email" required>...
How to secure (https) without domain name is it possible?
Sanitize user input to avoid XSS attacks Question
htmlspecialchars()
is the way to go but not sure what to do after that. Any ideas?Cookie Confusion
iron-session
to store the information necessary for ConnectKit's Sign-In With Ethereum (SIWE) to work on a GitHub pages hosted site backed by Supabase edge functions. (ConnectKit expects to have access to a /session
endpoint that returns the authenticated user's Ethereum address.)
iron-session
stores session information as an encrypted string sent back and forth as a cookie. The problem I'm having is if SameSite
is set to Lax
or Strict
, I get an error:
This attempt to set a cookie via a set-cookie header was blocked because it had a
SameSite="Lax"attribute but came from a cross-site response which was not a response to a top-level navigation.
...
store and display files
runtime of loops
Trying to update a single movie property with PATCH
PHP todo app database setup question
upload files
JSON.parse unexpected error
useEffect()
and awaiting the data as well. When I am trying to convert the data into json, it is giving me the error of
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
I am stuck here and cant solve this. I tried many different posts on net but none worked for me.
The backend server is running on localhost:4000
and react app is on localhost:5173
. I tried CORS
and even adding a proxy in package.json
but that also didnt work.
...How do you fetch instagram?
What does the backend server listens to??
We just simply use anchor tags or js with location.href to simply add that route to the Link and redirect. As user lands on that page, static elements r rendered and dynamics infos r fetched using API from the backend and later rendered. In this case i suppose the server can just listen to the machines localhost??...