Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

952
Views
Autenticación B2C de Azure Active Directory angular: problema de CORS

Estoy implementando la autenticación B2C de Azure Active Directory en Angular. Estoy usando el interceptor msal para conectar Azure AD B2C. La solicitud de autenticación falla con error

El acceso a XMLHttpRequest en ' https://login.microsoftonline.com/ ...' desde el origen ' http://localhost/ ...' ha sido bloqueado por la política CORS: No hay encabezado 'Access-Control-Allow-Origin' está presente en el recurso solicitado.

captura de pantalla de la consola del navegador

Configuré todo de acuerdo con esta publicación: https://medium.com/@sambowenhughes/configuring-your-angular-6-application-to-use-microsoft-b2c-authentication-99a9ff1403b3

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Ese artículo tiene aproximadamente dos años y this.clientApplication.authority = "https://login.microsoftonline.com/tfp/" no se ve bien. Debería ser algo como https://${b2cTenantName}.b2clogin.com/${b2cTenantName}.onmicrosoft.com/B2C_1_Sign_In .

¿Puede intentar configurar la aplicación de muestra angular desde https://github.com/Azure-Samples/active-directory-b2c-javascript-angular-spa y usarla como punto de partida?

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!