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.

CAPTCHA on self-hosted portal - CORS error (after following Wiki instructions)

See original GitHub issue

Bug description

Unable to sign in to a self-hosted portal with CAPTCHA enabled, even after following the wiki instructions

It is a CORS issue as described in #1054 (but occurs even with a custom domain on the managed portal).

Reproduction steps

As per the wiki instructions to enable CAPTCHA

  1. Self-host the portal at https://portal.example.com
  2. In Azure API Management, set up a custom domain for the managed portal at https://api.example.com
  3. Publish the self-hosted portal with the following settings
    • "useHipCaptcha" : true
    • "backendUrl": "https://api.example.com"
  4. Visit the self-hosted portal at https://portal.example.com and try to sign up
  5. A CORS error is returned when attempting to validate the CAPTCHA

Expected behavior

The user should be able to sign in

Is your portal managed or self-hosted?

Self-hosted

Release tag or commit SHA (if using self-hosted version)

da8ac015e8865c2fcc159cf1391b6386ad498b8c

Environment

  • Operating system: Windows 10
  • Browser: Edge (Chromium)
  • Version: 89

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
azaslonovcommented, Jun 17, 2022

CORS settings UI and documentation out. Closing the issue.

image

1reaction
mikebudzynskicommented, Aug 26, 2021

@paburgos, this shouldn’t be the case. Please, make sure your published portal is up-to-date (i.e., republish it if you haven’t done so in the last few weeks). If the problem persists, please contact Azure support, unless you have precise reproduction steps - in which case we would appreciate a bug report in this repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CAPTCHA endpoint not generated during publish #491 - GitHub
According to the wiki instructions, if "useHipCaptcha" is set to true in the config files, this endpoint and a child index.html file should ......
Read more >
Tutorial - Access and customize the developer portal
Follow this to tutorial to learn how to customize the API Management developer portal, an automatically generated, fully customizable ...
Read more >
CORS Pre-flight error when contacting self-hosted WebApi ...
I got this error when the Web portal contacts an self-hosted WebAPI service located in other server than the Web portal server:.
Read more >
Self hosted event manager issue (cors error) - Dynamics 365 ...
Hi,. We are trying to implement self hosted event manager. But after loading the angular website and configuring the environment file, we get...
Read more >
Getting CORS errors when accessing Confluence resources
When accessing Confluence resources from another origin, the request is blocked and may result in a CORS error similar to the following:.
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