All Questions
2,318
questions
0
votes
1
answer
33
views
Using Django REST Framework to make site cross-platform [closed]
I want to create cross platform site in Django, which can work with other clients, like my own c++ apps. Imagine someone creating social media in which you can post videos and articles. What I want is ...
-2
votes
1
answer
26
views
How to extract the correct URL from a specific given corrupted URL?
This is the URL of a PDF that I wanted to access:
http:\/\/www.mahakavya.com\/wp-content\/uploads\/2021\/02\/\u0905\u0925\u0930\u094d\u0935\u0935\u0947\u0926-hindi.pdf
But when i type it in web ...
-1
votes
0
answers
19
views
I want to see the name of file what i transfer on client html with Python, FastAPI, MPD, dashjs, manifest.mpd, [duplicate]
I want to see the file name on client html but i can't find the way. I searched whole way but couldn't. Here is my code.
Directory
/server.py
/static/index.html
/dash/.../manifest.mpd
server.py
from ...
1
vote
1
answer
43
views
Golang template function returns content of index.html instead of page
I try to create web application via this tutorial, but
localhost:3000 shows content of index.html instead of page. What is wrong with my code?
index.html result
main.go
package main
import (
&...
0
votes
1
answer
31
views
Browser doesn't get response header from my inherited http.server.SimpleHTTPRequestHandler
I am trying to build a HTTP server by inheriting http.server.SimpleHTTPRequestHandler.
It works fine and unless that the browser just doesn't know my server is trying to
send HTML data, and keep ...
-2
votes
0
answers
13
views
How do I submit a get request through a non-navigating link?
I'm creating a site that I would like to be as simple as possible. What I would like to do is have a user enter their email address, then an email would be sent with a link containing a token. Here is ...
1
vote
0
answers
20
views
How can I send a string from a Python script to a webserver?
I need a python script to send a string to a webserver if a condition is true. To check the condition, I have an if loop. However, I'm not sure what commands to use to send the string to the webserver....
0
votes
1
answer
40
views
How to make the HTML file access an external JS file but the user acees the file by typing the url
I need to make my login javascript file to be external but I don't want people to see it since it is a login system and the file contains the username and password
I was thinking about giving a 403 ...
0
votes
1
answer
37
views
Get Routers index html in C#
i try to get my Routers (fritzbox) index site in C#. Problem is he exits the code where he tries to reqeust the Homepage with the given SID. He doesnt go in any Breakpoint or exception it just exits ...
0
votes
0
answers
42
views
How to set referrerpolicy on inline style attribute (e.g. background-image)
As the title suggests I'm struggling to add referrerpolicy on resources loaded via inline style attribute.
I know I can set the following:
<img src="https://myseconddomain.com/image.png" ...
0
votes
0
answers
16
views
Problem displaying images stored locally in the backend
The problem
In the frontend, I am trying to display the images of what is a publication that contains title, description and their corresponding images. Here I print what I receive and store in posts:
...
1
vote
1
answer
50
views
How to avoid XSS issues when clicking HTML link to retrieve file from database and display it in new tab?
In the success callback of an AJAX request, I need to append a link to a modal. The link's href attribute points to an API route, which calls a Spring Boot controller method that writes the PDF file ...
0
votes
1
answer
44
views
Why browser waits for images to load still after you click to another page?
I'm trying to understand some basic HTML / HTTP behavior.
Given the following very simple HTML code:
<html>
<head></head>
<body>
<a href=&...
2
votes
1
answer
46
views
Is it easy/possible to handle http requests via GitHub?
Context: I'm trying to save data from a unity project to a public webpage.
All I need to do is save a string, then pull it with a different computer, I already have a script that parses that string ...
0
votes
0
answers
29
views
Website unable to connect via Websockets (PHP)
I'm trying to create a working websockets project for myself. I'm unable to connect the client (the HTML/PHP file) to the server (the PHP file containing the serversocket).
I replaced my actual ...