NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
20.84k stars 2.42k forks source link

CSRF Token error using Nginx Proxy Manager #1819

Open Aniket-IN opened 2 years ago

Aniket-IN commented 2 years ago

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 commented 7 months ago

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

github-actions[bot] commented 1 week ago

Issue is now considered stale. If you want to keep it open, please comment :+1: