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

CSRF Token error using Nginx Proxy Manager #1819

Open
Aniket-IN opened this issue Jan 29, 2022 · 1 comment
Open

CSRF Token error using Nginx Proxy Manager #1819

Aniket-IN opened this issue Jan 29, 2022 · 1 comment

Comments

@Aniket-IN
Copy link

Aniket-IN commented Jan 29, 2022

Hi, guys
I'm very new to NPM (Nginx Proxy Manager) yesterday I setup NPM with Docker and hosted my Laravel apps,
At first I was getting Mixed Content error (The page was loaded over HTTPS but requested assets over HTTP)
I managed to fix that by following this tutorial (https://geekscircuit.com/how-to-add/)

But now I'm getting many errors like Laravel's CSRF token mismatch, Meilisearch's API Authorization header missing.

image

I think it has something to do with some headers or something.
But I really don't know how to configure it properly.

My docker-compose.yml

version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    container_name: "Nginx-Proxy-Manager-GUI"
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    environment:
      X_FRAME_OPTIONS: "sameorigin"
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
      -  ./_hsts.conf:/app/templates/_hsts.conf:ro # I've just added this from this article (https://geekscircuit.com/how-to-add/)

Many thanks in advance :)

@SpyTVofficial
Copy link

Same here, other setup though.
Is this problem still consisting?
If yes, I'll keep you up to date if I figure something out :)

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