Git Product home page Git Product logo

Comments (8)

MrCybertux avatar MrCybertux commented on May 27, 2024 2

Setting same-origin in bunkerized nginx via the environment variable REFERRER_POLICY worked

Doc:
https://bunkerized-nginx.readthedocs.io/en/v1.3.2/environment_variables.html#security-headers

Thanks for your help and fast responses. 👍🏻

from deep-license-plate-recognition.

ttayson avatar ttayson commented on May 27, 2024

@MrCybertux is this a new installation? or did you already use it normally?

we are checking the situation to simulate the problem based on your information

from deep-license-plate-recognition.

MrCybertux avatar MrCybertux commented on May 27, 2024

@MrCybertux is this a new installation? or did you already use it normally?

we are checking the situation to simulate the problem based on your information

It is new we finalized the setup today

from deep-license-plate-recognition.

koteakh1 avatar koteakh1 commented on May 27, 2024

To debug this further, try setting the following in your nginx config: proxy_set_header Origin "";

from deep-license-plate-recognition.

koteakh1 avatar koteakh1 commented on May 27, 2024

A few questions:

  1. Which browser are you using?
  2. You are running into this issue when trying to log in (making a POST request). What happens when you simply load the login page? Does the page load over HTTP or HTTPS?
  3. Are you changing origin and referrer headers via nginx?

from deep-license-plate-recognition.

MrCybertux avatar MrCybertux commented on May 27, 2024

A few questions:

  1. Which browser are you using?
  2. You are running into this issue when trying to log in (making a POST request). What happens when you simply load the login page? Does the page load over HTTP or HTTPS?
  3. Are you changing origin and referrer headers via nginx?
  1. The tests were made with Brave and Firefox on Linux and Chrome and Firefox on Windows.
  2. Yes it only happens on Login before that the Page Loads normally
  3. We are Using the Bunkerized Nginx Project it removes headers when sending responses to clients:
    Server, X-Powered-By, X-AspNet-Version, X-AspNetMvc-Version

The REFERRER_POLICY was set to no-referrer
I will try same-origin and report back the result

Do X-Content-Type-Options matter?

from deep-license-plate-recognition.

koteakh1 avatar koteakh1 commented on May 27, 2024

no-referrer will definitely cause this issue. There could be other reasons too but let's start by replacing no-referrer. X-Content-Type-Options does not matter.

from deep-license-plate-recognition.

ttayson avatar ttayson commented on May 27, 2024

@MrCybertux I was able to reproduce your problem and configure it to work properly, you need to add the X-Forwarded-Proto header to the configuration file in Nginx.

I am trying with pure Nginx, in my case it was only necessary to add the proxy_set_header X-Forwarded-Proto $scheme to the configuration file.

Please test and tell us if it worked correctly

image

from deep-license-plate-recognition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.