-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Markdown preview doesn't work #1409
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
Comments
Seems to be an iframe issue #296 (comment) Maybe related to #1401 |
Apologies, the problem was in an inherited nginx config: # XSS
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block"; Everything works after I cleared those headers. Feel free to close this issue. |
Glad you figured it out. |
I am wondering how to or where to clear those headers? Thanks you very mucy! |
It's still happening in the latest builds - any chance you could elaborate on the 'fix' mentioned above ? |
I have a global nginx config called # XSS
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block"; These cause requests to be blocked by the browser while using code-server, resulting in the issue here. To fix it, simply don't set or clear the three headers mentioned above. For example: server {
server_name foo.bar;
location / {
# override from tls.conf
# required for Markdown preview
add_header X-Frame-Options "";
add_header X-Content-Type-Options "";
add_header X-XSS-Protection "";
proxy_pass http://code-server:8080;
}
listen 443 ssl http2;
include presets/tls.conf;
} Hope this makes sense. |
#296 (comment)
The text was updated successfully, but these errors were encountered: