Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:config:cors [2017/10/09 14:07] Lisa Clarke [Method 1: Set from htaccess file] |
litespeed_wiki:config:cors [2017/10/09 14:10] Lisa Clarke [How to verify] |
||
---|---|---|---|
Line 22: | Line 22: | ||
- Click **Add** button | - Click **Add** button | ||
- Choose **Static** type | - Choose **Static** type | ||
- | - Set URI **/** (Change this if you want) | + | - Set **URI** to ''/'' (You can change this if you want to) |
- | - Set Location **$SERVER_ROOT/Example/html/** (Change this if you want) | + | - Set **Location** to ''$SERVER_ROOT/Example/html/'' (You can change this if you want to) |
- | - Set Accessible to **Yes** | + | - Set **Accessible** to ''Yes'' |
- | - Extra Headers **Access-Control-Allow-Origin *** | + | - Set **Extra Headers** to ''Access-Control-Allow-Origin *'' |
- | - Click **Save** button | + | - Click the **Save** button |
- | - Do graceful restart \\ {{:litespeed_wiki:config:cors-1.png?|}}\\{{:litespeed_wiki:config:cors-2.png?|}} | + | - Do a graceful restart \\ {{:litespeed_wiki:config:cors-1.png?|}}\\{{:litespeed_wiki:config:cors-2.png?|}} |
- | ===== How to verify ===== | + | ===== How to Verify ===== |
====Before verification==== | ====Before verification==== | ||
we can check our response header include ''Access-Control-Allow-Origin *''. \\ {{:litespeed_wiki:config:cors-6.png?600|}} \\ | we can check our response header include ''Access-Control-Allow-Origin *''. \\ {{:litespeed_wiki:config:cors-6.png?600|}} \\ |