Skip to content

Commit

Permalink
feat: add secureApi and scriptSource (#222)
Browse files Browse the repository at this point in the history
Co-authored-by: Brad Peters <brdlyptrs@gmail.com>
  • Loading branch information
e271828- and brdlyptrs authored Feb 14, 2024
1 parent aecfb56 commit d56cbaa
Show file tree
Hide file tree
Showing 6 changed files with 3,328 additions and 11,244 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ return <HCaptcha ref={captchaRef} onLoad={onLoad} sitekey={sitekey} {...props} /
|`imghost`|String|No|`-`|See enterprise docs.|
|`reportapi`|String|No|`-`|See enterprise docs.|
|`sentry`|String|No|`-`|See enterprise docs.|
|`secureApi`|Boolean|No|`-`|See enterprise docs.|
|`scriptSource`|String|No|`-`|See enterprise docs.|
| `cleanup` | Boolean | No | `true` | Remove script tag after setup.|
|`custom`|Boolean|No|`-`|Custom theme: see enterprise docs.|
|`loadAsync`|Boolean|No|`true`|Set if the script should be loaded asynchronously.|
Expand Down Expand Up @@ -190,6 +192,10 @@ Please note that "invisible" simply means that no hCaptcha button will be render
3. #### Make sure you are using `reCaptchaCompat=false` if you have the reCAPTCHA JS loaded on the same page.
The hCaptcha "compatibility mode" will interfere with reCAPTCHA, as it adds properties with the same name. If for any reason you are running both hCaptcha and reCAPTCHA in parallel (we recommend only running hCaptcha) then please disable our compatibility mode.

4. #### Avoid conflicts with legacy Sentry package usage on react-hcaptcha 1.9.0+
If you are using Sentry 7.x in your React app, this can conflict with the upstream `hcaptcha-loader` package's Sentry error tracing. You can avoid this issue by setting the `sentry` prop to `false`.



---
### Contributing
Expand Down
Loading

0 comments on commit d56cbaa

Please sign in to comment.