-
Notifications
You must be signed in to change notification settings - Fork 203
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
Grav in Nginx: 403 Forbidden, Oops invalid security token #1748
Comments
Are you running the latest grav and grav admin? |
Yes, freshly installed and updated. |
Hmmm, I cannot reproduce this issue. Have you tried clearing all cache and logging out and in again? |
I am also not able to replicate the issue. |
been testing grav a lot recently, never experienced this issue :( |
Still occurs after clearing cache and logging out. It might have something to do with firewall or htaccess but I'm still super lost. Maybe I need to set permissions somewhere, but again I'm still lost. |
Can you let us know the steps you perform to get to the issue? I'm assuming you go in admin, have Helium/Hydrogen enabled as themes, go in Appearance, make some changes like background colors and such, click Save and get the error. Is that correct? |
That's correct. Anything I want to save or change in the appearance tab, just gives me a 403 error. So I basically can't change anything with the theme. It also gives me this error with other Gantry related themes. |
Which other Gantry related themes? |
I've seen this issue happening many, many times before. Try disabling mod_security if it helps. Later you can re-enable it, but there are some rules (which I need to dig up) which need to be disabled. |
Actually.. What does the error look like? Might be something else. |
Well, W00fz helped me a bit, and I figured out that I might have Nginx configured incorrectly. I'm going to take a day to reconfigure it, and I will report back tomorrow to see if everything was fixed correctly. Thank you all for the help. I'll be back tomorrow and let everyone know if it gets fixed. |
@Sqoon Did you manage to fix your issue? |
We are not yet sure why this happens for some users. If possible, please join us in https://gitter.im/gantry/gantry5 so that I can look into your site. |
@Sqoon Above link may help you to fix the issue ^ |
Please update nginx.conf:
|
I have updated nginx.conf with suggested location fix but still same 403 error - on the latest Grav + admin, Gantry 5 and Helium and all on 16.04 |
PS. Solved - needed to be edited in sites-available/grav, not in main nginx.conf. |
And, in case you're using Caddy, the equivalent rewrite rule:
|
Hello, I recently manually installed Gantry onto Grav, Gantry themes work fine, although changing anything within the Appearance admin tabs yields a "403 Forbidden, Oops invalid security token".
I am not sure if I am overlooking something simple.
Any help would be much appreciated, thank you.
The text was updated successfully, but these errors were encountered: