Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TheBunyip/discourse-allow-same-origin
https://github.com/TheBunyip/discourse-allow-same-origin
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/TheBunyip/discourse-allow-same-origin
- Owner: TheBunyip
- License: mit
- Created: 2015-02-27T13:59:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T08:58:28.000Z (over 6 years ago)
- Last Synced: 2024-08-02T12:49:11.649Z (4 months ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 9
- Watchers: 1
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - TheBunyip/discourse-allow-same-origin - (others)
README
# Discourse Allow Same Origin Plugin
This plugin sets Discourse's Rails server to add the `X-Frame-Options: ALLOWALL` HTTP header to all responses.
## How to install
There's already a template in the **app.yml** file for installing plugins due to the `docker_manager` plugin, so just add this plugin on the end!
```
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-spoiler-alert.git
- git clone https://github.com/TheBunyip/discourse-allow-same-origin.git
```Now you have to rebuild the container for the changes to be applied:
```
./launcher rebuild app
```References:
- https://meta.discourse.org/t/advanced-troubleshooting-with-docker/15927
- https://meta.discourse.org/t/x-frame-options-sameorigin-header-prevents-embedding/14928/7