mCaptcha / glue

glue code to setup mCaptcha on your website
7 stars 7 forks source link

Widget load a whole <html> page? #22

Closed pluja closed 1 year ago

pluja commented 1 year ago

When adding the widget with

<script src="/static/js/mcaptcha.js"></script>
<script charset="utf-8">
  let config = {
    widgetLink: new URL(
        "https://mymcaptcha.tld/widget/?sitekey=b1JVrsLSQG6cM8cOPa"
    ),
  };
  new mcaptchaGlue.default(config);
</script>

And adding this to my form:

<div id="mcaptcha__widget-container"></div>

I end up with a whole <html><head><body>.... inside my form.... Is there something I'm not doing right? Or is this the intended behaviour?

realaravinth commented 1 year ago

Hello! :wave:

This is the expected behavior, if all that code is wrapped in an <iframe> tag. Here's an example form Can you please confirm that for me? :)

pluja commented 1 year ago

I think that's fine! Thanks :)