Skip to content
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

Error 403 when trying to load the script #335

Open
patrickuhlmann opened this issue Nov 10, 2024 · 1 comment
Open

Error 403 when trying to load the script #335

patrickuhlmann opened this issue Nov 10, 2024 · 1 comment

Comments

@patrickuhlmann
Copy link

When I copy the code exactly as it is displayed it does not work on all pages. Sometimes an error 403 is encountered when trying to load the script. A precondition to encounter the behavior is that "Allowed origins" is set.

From my observation the reason is that in the GET request does not include an Origin Header which is needed if the option "allowed origins" is set. To fix the behavior the following attribute must included referrerpolicy="origin"

It might be a good idea to add it to the displayed code for embedding the statistics (at least if "allowed origins" is set).

@multi-max
Copy link

I get the same error :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants