-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS error while trying to redirect to duo url. #1
Comments
@kazanture Are you getting this issue with the provided demo itself, or from some other application you've added the client to? |
@kazanture Any update or solution you found regarding this ? |
@nishant-rana-19 are you also running into this issue? Can you tell us more about how you are deploying the Duo integration? We have not been able to reproduce this issue internally, so any details you can provide about the web application or environment might help. |
@AaronAtDuo So it's a simple login page with username and password as input and upon input I am verifying that the credentials are okay. If credentials are verified I return |
@nishant-rana-19 I don't remember the details but I finally had believed duo universal was not enabled on my duo account because it was showing like this: so we have switched to the old sdk: duo_web==1.3.0 Not sure if that was the case but we were able to move forward so i did not dig deeper. |
@kazanture @AaronAtDuo I will update about this universal prompt, if I remember correctly I did enable this. |
@kazanture @AaronAtDuo Yup my duo universal prompt is still 'Waiting on Duo..', one question I do have: Do I need this to be on New Prompt Ready or Activated for using Web SDK ? |
This client will work either way. The "Activate Universal Prompt" and "Waiting on Duo" piece is related to the prompt UI which we are private previewing and will roll out to all customers in the future. You can see https://duo.com/docs/universal-prompt-update-guide for more details. Any issues you have having should be unrelated to this however, since you're having issues with the redirect to Duo, not with the prompt that Duo serves. One quick question, I see a reference to XHR in the error. Does your application submit the login credentials via a normal form submit or using XHR? |
@AaronAtDuo Sorry for the late reply. The application uses fetch POST request. The application is based on react. |
I am also experiencing this same issue. I have a React web application that talks to a FastAPI API. When the redirect response is returned to the web app (after sending an initial get request), I receive an extremely similar error (in the console) to that of the one in the original issue. Happy to answer any questions to get this resolved. |
We've received a few more reports of this issue in the last couple weeks. I believe what is happening is:
If I am right, there may be a few options... |
@AaronAtDuo I know this issue is closed, but I am experiencing this very error.
|
Hello,
I have followed the demos and I am getting CORS error on browser when I am trying to redirect to the prompt_uri.
Any idea why?
The text was updated successfully, but these errors were encountered: