Questions tagged [authorization-header]
12 questions
12
votes
8 answers
Python requests: POST request dropping Authorization header
I'm trying to make an API POST request using the Python requests library. I am passing through an Authorization header but when I try debugging, I can see that the header is being dropped. I have no idea what's going on.
Here's my code:
access_token…

user4184113
- 976
- 2
- 11
- 29
10
votes
2 answers
In NestJS, what is the decorator I can add at a controller level to add an Authorization header to my Swagger docs?
I'm using NestJS 7.6.11. I have the following decorators on my controller ...
@Controller('private')
@ApiTags('MyObjects')
@ApiConsumes('application/json')
@ApiProduces('application/json')
@UseInterceptors(new JwtInterceptor())
export class…

Dave
- 15,639
- 133
- 442
- 830
2
votes
1 answer
Authorization header while using IdentityModel.AspNetCore
I'm using IdentityModel.AspNetCore Package to access a protected API using client credential flow.
In my startup, I have the following configuration
services.AddAccessTokenManagement(options =>
{
options.Client.Clients.Add("oauth", new…

Nilmi Nawalage
- 191
- 3
- 18
2
votes
1 answer
CORS Error When adding Authorization header
I'm building an Angular app that calls a .Net Core webapi. I have been able to set it up to be able to successfully call back and get a response with using CORS. But when I add the Authorization header to the Angular interceptor it throws the…

jhorton
- 1,019
- 3
- 17
- 36
1
vote
2 answers
Vercel Production Branch is stripping Authorization header on POST to Serverless Function API
Nothing special about the API but I have a serverless function POST API which expects an Authorization header to validate and then writes to a db.
For example:
curl --location --request POST 'https://myserver.server.com/api/endpoint' \
…

caseinc
- 53
- 6
0
votes
1 answer
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature with error code 403
I want to connect to my azure storage explorer and read the table data using python.It's running on Azure storage emulator.My code is like this;
storage_account_name = 'devstoreaccount1'
storage_account_key =…

Asu
- 7
- 4
0
votes
0 answers
How to implement or make browser to use cookie based authentication and stop sending authorization header on subsequent request
I have Nginx webserver with PAM module for basic authentication, and the client side is the javascript. I have to fix one security issue, where we want to stop sending authorization header from browser on the subsequent request. After the first…

supritha
- 11
- 4
0
votes
1 answer
authorization header is too large from JWT token roles and asp.net core
I add all user roles to the role claim of JWT and when added more roles I get this error
http://localhost:4200 has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
and when removing some of…

mohamed samir
- 1
- 1
0
votes
1 answer
react-natiive Avatar element add authorization header for uri attribute
I am using the react-native version: "0.63.4". In the Avatar react-native url, I am setting the url value, however, I need to attach an authorization header, with the url. Could someone suggest how do I do it?
import {ListItem,Avatar} from…

javapedia.net
- 2,531
- 4
- 25
- 50
0
votes
0 answers
WebAPI Authorization Header using FromHeader
I want to use an authorization header that looks like so -
Authorization: APIToken
I'd like to use the FromHeader parameter in my C# controller so that I can inject this value when testing inside Swagger, but when I try to come the…

MK998392
- 15
- 3
0
votes
0 answers
Angular PHP Authorization Header API Call Fails
I am working on a login page functionality in a SPA built with Angular CLI. My backend is tomcat, php with mysql on a hosting server to which I am able to successfully connect, get and update via post call all the other content in the app using…

Anil Kumar
- 41
- 3
0
votes
1 answer
How to display an image in browser from azure blob storage without getting authentication error?
I have an image in Azure Local Storage with uri: http://127.0.0.1:10000/devstoreaccount1/profilepics/c2364829-ee9f-4c26-925b-dedb8d4465ca. But when I try to display the image via my web app like

rharrison33
- 1,252
- 4
- 18
- 34