561 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
48
views
res.download() only succeeds with small files
*** UPDATE ***
I have now discovered that the problem ONLY occurs with some (large) PDF files. Text files (some very large 2GB to test) are fine.
The file I am trying to make available is a 322Mb ...
0
votes
0
answers
39
views
Getting javascript error: arguments[0].getResponseHeader is not a function error
I am trying to read the downloaded file name from the header, but I am getting the Javascript exception.
public void clickOnDownloadBtn() {
UIPageAction UIPgAct = new UIPageAction();
UIPgAct....
-1
votes
2
answers
223
views
CORS issue with express.js
I am using express js in my backend file where i have set the cors policy. But after deploy the backed file in vercel i am unable to Get data in my client side. It gives a cors error the errors are
...
1
vote
0
answers
176
views
Is "Content-Type: image/png; charset=UTF-8" a valid header?
I'm working with two platforms, one of which is serving up a PNG image file, and the other is accessing image from a URL I send it. I'm not in control of the server or its headers, but I can see that ...
1
vote
1
answer
1k
views
Removing 'Server' Header not working in ASP.NET Core 8 does not work with middleware or IIS Manager
I am trying to remove the Server Header from the HTTP response in my application.
I’ve seen quite a bit of information online and tried several things, but none have worked.
I’ve tried using the ASP....
0
votes
2
answers
158
views
Azure Durable Function - add custom headers to 202 response in trigger
we are trying to figure out how to alter the default 202 response, and add custom headers on success from called trigger function.
Reason we are trying to do so, is preserving already existing ...
1
vote
0
answers
15
views
Express-session does not set cookies for request headers and response headers when deploy nodejs
I got struggle when I deploy my backend with EC2 and the domain after deploy is http://52.xx.xx.xx:8080. I can not set cookies for request header.
The flow is that
When the user clicks on "Login&...
1
vote
1
answer
93
views
Override default UTC time on static resources [duplicate]
I have set up static resource serving with SpringBoot like so:
@Configuration
@EnableWebMvc
public class WebConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(...
1
vote
2
answers
447
views
How do I get Backblaze B2 to respond with Access-Control-Allow-Origin?
I'm trying to fetch an image using JavaScript from a Backblaze bucket that is set to allPrivate.
I have a correct authorization code that works if I fetch the image like this:
echo '<img src="'...
0
votes
1
answer
78
views
How to Manage HTTP Response Headers in Apache for a Magento Site?
I want to update headers like Cache-Control, Expires, and Pragma, but I'm facing issues even after making changes in my .htaccess file.
Current Configuration:
I've added the following to my .htaccess ...
-3
votes
1
answer
65
views
.css and .js was blocked due to MIME type mismatch
My HTML is being rendered as a string.
This is how I set my headers.
@app.after_request
def apply_caching(response):
response.headers["Content-Type"] = "text/*"
response....
1
vote
1
answer
111
views
HTML5 Audio player in R Shiny app goes to beginning of track when setting currentTime
I have created an audio player using R shiny which creates an audio player like this:
tags$audio(
src = "song.mp3",
type = "audio/mp3",
controls = "controls&...
0
votes
1
answer
59
views
How to manually add response Access-Control-Allow headers to preflight requests
I have an express server ("express": "^4.19.2") set up and use this custom function to add response headers:
const allowCORS = (req: Request, res: Response, next: NextFunction): ...
0
votes
0
answers
133
views
How do you get the object metadata for an S3 Bucket object when querying from javascript
I am getting an object from an S3 bucket using the GetObject command. I want to query some user defined metadata on the object.
I can see that the metadata is included in the response headers but I ...
0
votes
1
answer
244
views
"Best" way to inject a Livewire component into the response with Laravel middleware
I want to add a Livewire component to every request using middleware rather than having to manually add the component. I've done a bit of research and have looked at Spatie's Laravel cookie consent ...