Skip to content

Commit 1a97bca

Browse files
author
Administrator
committed
Readme changed
1 parent 180140f commit 1a97bca

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

CORS-CDN/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
Installing the **Edgeport - Premium CDN Add-On** on Magento 2 application, you will be experiencing [**Cross-Origin Resource Sharing (CORS)**](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) issue which is invoked when a web application executes a cross-origin HTTP request when it requests a resource that has a different origin (domain, protocol, and port) than its own origin.
44

55
There are several ways how to overcome this issue. One of them we describe here.
6+
Open [Jelastic Configuration Manager](https://docs.jelastic.com/configuration-file-manager) and do the following steps:
67

7-
1. Upload **cors.conf** file from repository directory **CORS-CDN** to **/etc/nginx/** directory.
8+
1. Create new **/etc/nginx/conf.d/cors** directory.
9+
10+
2. Upload **cors.conf** file from repository directory **CORS-CDN** to **/etc/nginx/conf.d/cors** directory.
811

9-
2. Open **cors.conf** , find line #5 and replace **magentohostname** with your environment hostname and **magentocdnhostname** with magento CDN hostname obtained upon Add-On installation.
12+
3. Open **cors.conf** , find line #5 and replace **magentohostname** with your environment hostname and **magentocdnhostname** with magento CDN hostname obtained upon Add-On installation.
1013

1114
For example: **if ($http_origin ~* 'https?://(localhost|magento\\.jelastic\\.com|magento\\.cdn\\.edgeport\\.net)')**
1215

13-
3. Replace **/etc/nginx/conf.d/site-default.conf** with **site-default.conf** from repository directory **CORS-CDN**.
16+
4. Replace **/etc/nginx/conf.d/site-default.conf** with **site-default.conf** from repository directory **CORS-CDN**.
1417

15-
4. The changes added as lines **67, 79, 104** and **113** to **site-default.conf**.
18+
5. The changes added as lines **67, 79, 104** and **113** to **site-default.conf**.
1619

17-
5. Change the URLs in magento admin panel like as on the example picture below.
20+
6. Change the URLs in magento admin panel like as on the example picture below.
1821

1922
<p align="left">
2023
<img src="../images/urls-example.png" width="600">

0 commit comments

Comments
 (0)