question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CORS error Azure B2C

See original GitHub issue

Please follow the issue template below. Failure to do so will result in a delay in answering your question.

Library

Microsoft.AspNetCore.Authentication.AzureADB2C.U

  • msal@1.x.x or @azure/msal@1.x.x
  • @azure/msal-browser@2.x.x
  • @azure/msal-angular@0.x.x
  • @azure/msal-angular@1.x.x
  • @azure/msal-angularjs@1.x.x

Description

Hi everyone! I developed an application that works with Azure B2C and I have my work flow available for profile editing, when I want to edit a data , this redirect to index but with a cors error. I’wll attach the issue description. Please, can anyone help me with this?

Request at ‘https://xxxxx.b2clogin.com/xxxxxx.onmicrosoft.com/b2c_1_signup…kveCtN0Bnp1GpsilHJRtFb&x-client-SKU=ID_NETSTANDARD2_0&x-client-ver=5.5.0.0’ (redirected from ‘https://xxxxx.azurewebsites.net/xxxxxx/xxxxxxx’) from origin ‘https://xxxxxxx.azurewebsites.net’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

error (1)

My app is already registrated in the azure portal

Examples:

“How do I use MSAL with Vue.js” “How do I SSO between tabs?” “How do I use MSAL to protect my custom Web API?” “How can my app support multiple AAD tenants?” “When will my scenario be supported?” “When will this framework be supported”

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
jennyf19commented, Sep 15, 2020

@MellVgaEcu awesome! Thanks for letting us know so quickly.

1reaction
MellVgaEcucommented, Sep 15, 2020

@jennyf19 No, After updating the packages,my issue was resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure AD B2C CORS errors
Part 1 works fine. I'm trying Part II with my own Azure AD B2C. I updated policies.js file with the URL from my...
Read more >
Azure AD B2C: CORS issue with the metadata endpoint ...
Today, all of sudden with no change done on my side, it started to fail trying to access the metadata endpoint (.well-known/openid-configuration) ...
Read more >
Enable CORS for Azure AD B2C
to user flows in Azure AD B2C. This is not possible as it seems CORS is not enabled. Is there any way to...
Read more >
CORS issues when using Azure AD in ASP.Net Core and ...
Recently, I wrote a post about using Azure Active Directory (AD) as authentication mechanism for a single page application written in ...
Read more >
[Solved]-CORS error Azure functions with B2C - Blazor-blazor
This CORS error occurs because you are accessing https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com endpoint. from https://localhost endpoint.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found