Skip to content

Commit

Permalink
Sign in form should send form encoded data
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Jan 8, 2025
1 parent a2181ba commit b23c340
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class HttpContentTypeHeaderInterceptor implements HttpInterceptor {
'/social/signin/auth.json',
'/shibboleth/signin/auth.json',
'/signin/auth.json',
'https://auth.dev.orcid.org/login',
]

construct() {}
Expand All @@ -18,7 +19,7 @@ export class HttpContentTypeHeaderInterceptor implements HttpInterceptor {
// If the request contains a content type, be sure to set the encoding to utf-8
if (['POST', 'PUT'].includes(method)) {
var clonedRequest
if (this.formUrlEcondedUrls.find((x) => urlWithParams.includes(x))) {
if (this.formUrlEcondedUrls.find((x) => urlWithParams.includes(x))) {
clonedRequest = req.clone({
headers: req.headers.set(
'Content-Type',
Expand Down

0 comments on commit b23c340

Please sign in to comment.