Browse Source

DOC-868: Added note re for troubleshooting missing referer (#2066)

* DOC-868: Added note re for troubleshooting missing referer

Also updated the nixpin and tweaked some bash scripts to allow them to run
in nix.

* Update cloud-deployment-guide/editor-and-features.md

Co-authored-by: Tyler Kelly <tyler.kelly@tiny.cloud>

Co-authored-by: Tyler Kelly <tyler.kelly@tiny.cloud>
pull/2075/head
Tom 4 years ago
committed by GitHub
parent
commit
8bccb784d6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      _scripts/init.sh
  2. 2
      _scripts/serve.sh
  3. 6
      cloud-deployment-guide/editor-and-features.md
  4. 2
      nixpin.nix
  5. 1
      shell.nix

2
_scripts/init.sh

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

2
_scripts/serve.sh

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
rm -rf _site
bundle exec jekyll serve --incremental --config _config.yml,_config-local.yml,_config-local-override.yml --host=0.0.0.0

6
cloud-deployment-guide/editor-and-features.md

@ -31,6 +31,12 @@ The following example adds a script tag into the application that inserts the co
![Script Tag Description]({{ site.baseurl }}/images/scripttag.png)
<a class="anchor" id="referer-troubleshooting"></a>
> **Important**: {{site.cloudname}} verifies the domain {{site.productname}} is loading from by checking the **Referer** header in the network request. Sometimes the domains in the **Referer** header does not match with the URL in the browser's address bar.
>
> To check the **Referer** header, open your browser's _Developer's Tools_ and open the _Network_ tab. From there, find the request being made to load {{site.productname}} with your API key, and click on the **Headers** tab. In the section called **Request Headers** there should be a field for **Referer**. If the value there is different from one of your registered URLs, you may need to adjust either your registered URLs, or your application's **Refer** header settings.
### Step 2: Load, customize and interact with TinyMCE
There are more than 40 open source plugins that enhance the editing experience in addition to the advanced content create solutions on {{site.cloudname}}. A range of [simple examples]({{ site.baseurl }}/demo/basic-example/) are available. Refer to the [Quick start]({{ site.baseurl }}/quick-start) section for more information.

2
nixpin.nix

@ -1,5 +1,5 @@
import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/archive/696c6bed4e8e2d9fd9b956dea7e5d49531e9d13f.tar.gz";
url = "https://github.com/NixOS/nixpkgs/archive/7e9b0dff974c89e070da1ad85713ff3c20b0ca97.tar.gz";
# Wait till new nix version is released.
#sha256 = "1b4h12y45h08c7dxa6420qmspv6k82p3sw4xzz8g53k7s7dg128z";
}

1
shell.nix

@ -10,6 +10,7 @@ let
buildInputs = [
nixpkgs.ruby
nixpkgs.zlib
nixpkgs.bundler
];
};
in ui
Loading…
Cancel
Save