Skip to content

Commit e845b5f

Browse files
Update article.md
Hi guys, I looked at your article to solve my CORS issue but it didn't work. So eventually I found a question on StackOverflow that explained in order to make things work properly, I needed to add also "Access-Control-Allow-Origin: https://javascript.info" to the preflight response. Did anyone have the same issue? If so, we need to update the article in order to save the time of future readers :) StackOverflow question: https://stackoverflow.com/questions/42558221/how-to-cors-enable-apache-web-server-including-preflight-and-custom-headers
1 parent 58f6599 commit e845b5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

5-network/05-fetch-crossorigin/article.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ Access-Control-Request-Headers: Content-Type,API-Key
259259
### Step 2 (preflight response)
260260
261261
The server should respond with status 200 and headers:
262+
- `Access-Control-Allow-Origin: https://javascript.info`
262263
- `Access-Control-Allow-Methods: PATCH`
263264
- `Access-Control-Allow-Headers: Content-Type,API-Key`.
264265

0 commit comments

Comments
 (0)