I added this to my config:
add_header X-Frame-Options "ALLOW-FROM http://167.235.117.189" always;. But Chrome says that there are two "X-Frame-Options" set. I searched with grep in my entire /etc/nginx directory but it only found the one I set. Can anybody help me?
Nginx " X-Frame-Options" set to two values
73 Views Asked by IkonoDim At
2
There are 2 best solutions below
0
Halvor Sakshaug
On
Different browser may treat this differently. ALLOW-FROM has limited support outside IE. I would suggest to use the Content-Security-Policy header instead. Set the value to "frame-ancestors 'self' 167.235.117.189" if your current X-Frame-Options values are SAMEORIGIN and the ip. When the frame-ancestors directive is present X-Frame-Options will be ignored and you can allow both sources.
Related Questions in HTTP
- Handling both JSON and form values in POST request body with unknown values in Golang
- Why can't I use PUT requests?
- nginx set up reverse proxy from subfolder to a port
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- Getting `FormatException: Missing extension byte (at offset 6)` exception for accessing `response.body` from a server deployed in Vercel
- Retrieving list of values from MYSQL data base based on input value(LARAVEL 10 )(GET HTTP METHOD)
- Unable to add request headers via CHttpFile - C++/MFC
- Why do we call all http services 'Web Api/Web Service'?
- How to correctly read POST REQUEST body on ESP32?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Elasticsearch - cascading http inputs from Airflow API
- How to clean the html pages opened in a session?
- UTF-8 is not a valid encoding name
- I dont get the Result i expected when i want to get my Telegram Chatbot id
- NextJS 14 SSE with TransformStream() sending messages in a single response
Related Questions in NGINX
- Nginx reverse proxy with query parameters not working
- Root path analogue in uWSGI as in Uvicorn
- Keycloak: How to override Welcome Screen redirect behavior (to custom realm, instead of master realn/admin)
- nginx set up reverse proxy from subfolder to a port
- Nginx Not Correctly Redirecting Users To Custom Page
- How to connect to ssh server with domain name
- Nginx configuration file and SSL certificate errors in Docker
- Invalid Host header not being rejected by nginx
- Nginx only caches file endpoints
- How to configure Nginx for a VPS?
- Problem with changing default NGINX 404 error page
- My VPS does not accept HTTPS requests on a port other than 443
- NGINX Configuration Issue with Next.js and Strapi Project
- Openshift nginx proxy_pass not redirecting from current host to another
- Adonis.js in production : ENOENT: no such file or directory, open '/public/assets/.vite/manifest.json'
Related Questions in IFRAME
- Why a component? Drawer of mui Does not work inside Iframe
- How can I catch all DOMExceptions thrown in Firefox?
- Embeded Google slides opens new tab on screen touch (mobile mode)
- Jira helpdesk widget doesn't create an iframe when script is loaded dynamically
- HTTP Client Hint headers are not sent from an iframe
- Excel embedding through OneDrive: preview is correct, while the end result is not
- SameSite None Cookie on Authentication Cookie On WordPress Website
- Is it possible to interact with SSO between Website A and Website B?
- SSO to Grafana embeded in iframe
- AudioContext not heard although it is running
- How to disable page-break before a long iframe while printing?
- How to get a postMessage message from Duda into the embedded iframe?
- auto login with Grafana
- PagerDuty Integration
- iframe hosted on CloudRun not firing onLoad event in React JS
Related Questions in X-FRAME-OPTIONS
- CustomHeaders specified in web.config in angular application not reflected in response
- chrome doesn't seem to respect X-Frame-Options
- SSRS issue embed to web application
- Facebook Javascript SDK , Throws unexpected Iframe Errors occasionally
- Embed Webpage into website using an Iframe
- Nginx " X-Frame-Options" set to two values
- Embedding Apache Superset charts in React app
- Why can the X-Frame-Options not hide the iframe web in Chrome (117.0.5938.88), but it works in Safari?
- Wordpress BeTheme Error when trying to edit templates
- X-Frame-Options inside React App (CRA) seem like doesn't work
- CSP frame-ancestors wildcard usage failing
- Trying to set X-Frame and CSP to display another websites login page but connection refused
- Uncaught DOMException: Blocked a frame with origin "https://our-website.com" from accessing a cross-origin frame
- How to detect and handle iframe content blocked due to X-Frame-Options?
- Unable to update web.config to allow one url in iframe for Angular app hosted on Azure IIS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I added this:
fastcgi_hide_header X-Frame-Options;to my route config