X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=docs%2Ftroubleshooting.md;h=649e5a61fc959d437e0a47ccd1c14dc159798b8c;hb=7e48e099aa968307d2b99720a076b4bdc706b5fd;hp=ed1f85d58a438091b651b94b4e930aaf20a4fb8b;hpb=451b1ac62450fb2c4f8e2382bcf422bb7a434700;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index ed1f85d..649e5a6 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -6,7 +6,7 @@ You might by facing a [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/C It happens when the targeted service is hosted on a different domain or port. Web browsers will not allow to fetch information from a different site without explicit permissions (the targeted service must include a special `Access-Control-Allow-Origin: *` HTTP headers). -If this happens your web console (`ctrl+shit+i` or `F12`) will be filled with this kind of errors: +If this happens your web console (`ctrl+shift+i` or `F12`) will be filled with this kind of errors: ```text Access to fetch at 'https://' from origin 'https://' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. @@ -15,5 +15,5 @@ Access to fetch at 'https://' from origin 'https://' has To resolve this, you can either: * Host all your target service under the same domain & port. -* Modify the target sever configuration so that the response of the server included following header- `Access-Control-Allow-Origin: *` (). It might be an option in the targeted service, otherwise depending on how the service is hosted, the proxy or web server can seamlessly add it. -* Use a cors proxy sever like [`cors-container`](https://github.com/imjacobclark/cors-container), [`cors-anywhere`](https://github.com/Rob--W/cors-anywhere) or many others. +* Modify the target server configuration so that the response of the server included following header- `Access-Control-Allow-Origin: *` (). It might be an option in the targeted service, otherwise depending on how the service is hosted, the proxy or web server can seamlessly add it. +* Use a cors proxy server like [`cors-container`](https://github.com/imjacobclark/cors-container), [`cors-anywhere`](https://github.com/Rob--W/cors-anywhere) or many others.