Cross Origin Resource Sharing Flashcards

1
Q

Restricts how a document/script from one origin can interact with a resource from another origin.

A

Same-Origin Policy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2 web pages have the same origin if they have the same? (3)

A
  1. Protocol
  2. Host/Domain
  3. Port
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A page attempting to interact with a resource from a different origin is making a __________________.

A

Cross-Origin Request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Same-Origin Policy is done by the _________, not by the website itself.

A

Browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Browser restrict cross origin ____________ initiated within scripts.

A

HTTP requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why restrict cross-origin access?

A

Cross-origin requests are a vector for online attacks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A system that allows resources to be accessed across different origins.

A

Cross-Origin Resource Sharing (CORS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The __________ headers are used by the clients and servers to determine if the client can access the server’s resources.

A

Access-Control-*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Some cross-origin requests trigger a ________ _________.

A

Preflight Request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Automatically issued by the browser before sending some kinds of cross-origin requests.

A

Preflight requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Request to check to see if the actual request will be accepted and processed.

A

Preflight requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

All preflight requests are _______ HTTP requests with 3 particular headers.

A
  1. Access-Control-Request-Method
  2. Access-Control-Request-Headers
  3. Origin
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In general, requests that _________________________ in the server’s data trigger a preflight request.

A

will cause some sort of change

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

___________ requests don’t trigger a preflight and only look for the Access-Control-Allow-Origin header in the response.

A

Simple

How well did you know this?
1
Not at all
2
3
4
5
Perfectly