Skip to content

Commit f8051c4

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents 4fc5344 + 8deaf78 commit f8051c4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

md/4_export_embed/cors/cors.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## When does this happen?
44

5-
Sometimes you want to access ressouces on different servers than your patch is running on, these may be
5+
Sometimes you want to access resources on different servers than your patch is running on, these may be
66
images, some api or any different file. Check [this patch](https://cables.gl/p/5FQ08W) for example, that
77
loads data from an API to get the current temperature in Berlin.
88

@@ -11,9 +11,10 @@ certain HTTP-Headers (see below). Really often this is not the case.
1111

1212
## How do i know this happens to me?
1313

14-
use this cors test to see if your headers are set correctly: https://cors-test.codehappy.dev/
14+
Use this cors test to see if your headers are set correctly: https://cors-test.codehappy.dev/
1515

16-
First of all, you won't see the files loaded, no images, no data from the API. Check your developer tools (ctrl+shift+i or cmd+option+i) console
16+
First of all, you won't see the files loaded, no images, no data from the API. Errors like "unexpected end of JSON".
17+
Check your developer tools (ctrl+shift+i or cmd+option+i) console
1718
in the browser and you will, most likely, see something like this:
1819

1920
```
@@ -42,6 +43,7 @@ to adding this to your HTTP-Response headers:
4243
```
4344
Access-Control-Allow-Origin: https://cables.gl
4445
Access-Control-Allow-Origin: https://sandbox.cables.gl
46+
Access-Control-Allow-Origin: https://devsandbox.cables.gl
4547
```
4648

4749
or more broadly:

0 commit comments

Comments
 (0)