You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/glossary/preflight_request/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,15 @@ For example, a client might be asking a server if it would allow a {{HTTPMethod(
17
17
OPTIONS /resource/foo
18
18
Access-Control-Request-Method: DELETE
19
19
Access-Control-Request-Headers: x-requested-with
20
-
Origin: https://foo.bar.org
20
+
Origin: https://www.example.com
21
21
```
22
22
23
23
If the server allows it, then it will respond to the preflight request with an {{HTTPHeader("Access-Control-Allow-Methods")}} response header, which lists `DELETE`:
Copy file name to clipboardExpand all lines: files/en-us/learn_web_development/extensions/forms/basic_native_form_controls/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,7 +285,7 @@ If the image button is used to submit the form, this control doesn't submit its
285
285
So for example when you click on the image at coordinate (123, 456) and it submits via the `get` method, you'll see the values appended to the URL as follows:
286
286
287
287
```url
288
-
http://foo.com?pos.x=123&pos.y=456
288
+
https://example.com?pos.x=123&pos.y=456
289
289
```
290
290
291
291
This is a very convenient way to build a "hot map". How these values are sent and retrieved is detailed in the [Sending form data](/en-US/docs/Learn_web_development/Extensions/Forms/Sending_and_retrieving_form_data) article.
Copy file name to clipboardExpand all lines: files/en-us/learn_web_development/extensions/forms/sending_and_retrieving_form_data/index.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,10 @@ The {{HTMLElement("form")}} element defines how the data will be sent. All of it
55
55
56
56
The [`action`](/en-US/docs/Web/HTML/Reference/Elements/form#action) attribute defines where the data gets sent. Its value must be a valid relative or absolute [URL](/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL). If this attribute isn't provided, the data will be sent to the URL of the page containing the form — the current page.
57
57
58
-
In this example, the data is sent to an absolute URL — `https://example.com`:
58
+
In this example, the data is sent to an absolute URL — `https://www.example.com`:
59
59
60
60
```html
61
-
<formaction="https://example.com">…</form>
61
+
<formaction="https://www.example.com">…</form>
62
62
```
63
63
64
64
Here, we use a relative URL — the data is sent to a different URL on the same origin:
@@ -93,7 +93,7 @@ The [`GET` method](/en-US/docs/Web/HTTP/Reference/Methods/GET) is the method use
<labelfor="say">What greeting do you want to say?</label>
99
99
<inputname="say"id="say"value="Hi" />
@@ -108,7 +108,7 @@ Consider the following form:
108
108
</form>
109
109
```
110
110
111
-
Since the `GET` method has been used, you'll see the URL `www.foo.com/?say=Hi&to=Mom` appear in the browser address bar when you submit the form.
111
+
Since the `GET` method has been used, you'll see the URL `https://www.example.com/greet?say=Hi&to=Mom` appear in the browser address bar when you submit the form.
112
112
113
113

114
114
@@ -121,7 +121,7 @@ The HTTP request looks like this:
121
121
122
122
```http
123
123
GET /?say=Hi&to=Mom HTTP/2.0
124
-
Host: foo.com
124
+
Host: example.com
125
125
```
126
126
127
127
> [!NOTE]
@@ -137,7 +137,7 @@ The [`POST` method](/en-US/docs/Web/HTTP/Reference/Methods/POST) is a little dif
137
137
Let's look at an example — this is the same form we looked at in the `GET` section above, but with the [`method`](/en-US/docs/Web/HTML/Reference/Elements/form#method) attribute set to `POST`.
Copy file name to clipboardExpand all lines: files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ The declarative rules are defined by four fields:
37
37
> - the action does not change the request.
38
38
> - the redirect URL is invalid (e.g., the value of {{WebExtAPIRef("declarativeNetRequest.redirect","redirect.regexSubstitution")}} is not a valid URL).
39
39
40
-
This is an example rule that blocks all script requests originating from `"foo.com"` to any URL with `"abc"` as a substring:
40
+
This is an example rule that blocks all script requests originating from `"example.com"` to any URL with `"abc"` as a substring:
41
41
42
42
```json
43
43
{
@@ -46,7 +46,7 @@ This is an example rule that blocks all script requests originating from `"foo.c
0 commit comments