Skip to main content

Questions tagged [response-headers]

The tag has no usage guidance.

response-headers
0 votes
1 answer
36 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 ...
Chris's user avatar
  • 15
0 votes
0 answers
25 views

PDF uploaded within a folder downloads when viewed on phone browser - I want to change that to View

Noticed that when I click on a direct link to a PDF (mysite.com/resource/flyer.pdf) on my phone it downloads and then gives an option to view (Would you like to open the downloaded file?) instead of ...
Vinith Almeida's user avatar
0 votes
1 answer
93 views

ASP.NET Core 6 Web API : missing "Allow-Control-Allow-Headers" headers in response

In my ASP.NET Core 6 Web API, I enabled CORS following this article: MS article. The API endpoint works, but there is no expected header Access-Control-Allow-Origin in the response: API response ...
Bing Code's user avatar
0 votes
1 answer
25 views

Cloudflare response headers not setting image/png

I have a Next app with an endpoint api/download?icon=UUID which downloads an png image. In localhost everything is working fine, the problem is with the live version that uses cloudflare, the response ...
Alessandro's user avatar
0 votes
1 answer
66 views

.NET Core json response differences between Chrome and Firefox

I wrote a Minimal Web API with this code: app.MapGet("/api/getLogs", async (HttpContext context) => { context.Response.Headers.ContentType = "application/json"; data =...
Peter's user avatar
  • 2,214
0 votes
1 answer
19 views

JBOSS appends charset=ISO-8859-1 in response headers

JBOSS v7.4 appends charset=ISO-8859-1 to my js files due to which browser throws "Unexpected token" error for files with special characters. The same file loads correctly on Weblogic and ...
Shaik Taher's user avatar
0 votes
0 answers
356 views

Uncaught (in promise) Error: `headers` was called outside a request scope. next.js14

when i go to chats page The page is not responding due to this error, and when I open the console, I find the number of errors increasing non-stop, and this sentence appears to me: Uncaught (in ...
khayal's user avatar
  • 51
0 votes
0 answers
34 views

Unable to remove Cross-Origin-opener-Policy in MV3 chrome extension

The below code updates a few network request rules. Now if you look at rule id 2 we remove certain headers. I can see all of the other headers removal taking effect but not the Cross-Origin-Opener-...
Kritidipto Ghosh's user avatar
0 votes
0 answers
11 views

Access-Control-Allow-Origin is null even when set in web.config

We have a vulnerability reported in our application. Access-Control-Allow-Origin is reflecting the same origin value that is calling the resource. It is happening because Access-Control-Allow-Origin ...
NewbieHere's user avatar
0 votes
0 answers
16 views

Flask: How to return the "Retry-After" header (flask.Response.retry_after ?) [duplicate]

I have a Python + Flask web app that serves files. The file needs a time to be made, that may vary from few seconds to few minutes. If a request comes and the file is not ready, the "Error 503&...
Nanno's user avatar
  • 111
0 votes
1 answer
113 views

HeadersAlreadySentException: Headers already sent in Error in Yii2 framework

I encounter an issue where my Yii2 project are giving below error on hosting. Running fine on local. Fatal error: Uncaught yii\web\HeadersAlreadySentException: Headers already sent in/home8/nakkadka/...
yai's user avatar
  • 80
0 votes
0 answers
28 views

Allow both `'Access-Control-Allow-Origin' '*'` and `Content-Security-Policy "frame-ancestors *"`

I have the following conf.d/prod.conf. It does not raise Refused to display 'https://v10.frontend.tech/' in a frame because it set 'X-Frame-Options' to 'sameorigin'. because of add_header Content-...
SoftTimur's user avatar
  • 5,234
0 votes
1 answer
126 views

How to set up the link for the paginated files in the Get Rows(V2) Logic App connector and pass it via Azure API call?

I have created a Logic App and doing the pagination of the result retrieved by Get Rows(V2) connector. The threshold is set to 1500 and it is working fine. The test case file has 4484 records and the ...
Atul's user avatar
  • 7
0 votes
0 answers
38 views

Simple proxy to change Content-Disposition header (AWS Preferred)

I'm working on a use-case that involves retrieving files from an external source (out of my control) which serves them with a Content-Disposition header set to attachment. I would like to serve these ...
David Carli-Arnold's user avatar
0 votes
0 answers
44 views

Remove server header in IIS 10.0 when the subfolders in the request path are more than the maxUrlSegments attribute (default value 32)

I have a situation in which I cannot control the response from the IIS when the request contains many subfolders that exceed the value of the maxUrlSegments setting (default = 32). See image: In fact,...
Kostis's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
38