Why cross origin used in Script tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why cross origin used in Script tag

crossorigin attribute uses

31st May 2022, 4:35 PM
Ravikumar Gantla
Ravikumar Gantla - avatar
6 Answers
+ 1
Ravikumar Gantla Weird the links work for me. The crossorigin attribute sets the mode of the request to an HTTP CORS Request. Web pages often make requests to load resources on other servers. Here is where CORS comes in. A cross-origin request is a request for a resource (e.g. style sheets, iframes, images, fonts, or scripts) from another domain. CORS is used to manage cross-origin requests. CORS stands for Cross-Origin Resource Sharing, and is a mechanism that allows resources on a web page to be requested from another domain outside their own domain. It defines a way of how a browser and server can interact to determine whether it is safe to allow the cross-origin request. CORS allows servers to specify who can access the assets on the server, among many other things. Tip: The opposite of cross-origin requests is same-origin requests. This means that a web page can only interact with other documents that are also on the same server. This policy enforces that documents that interact with each other mu
31st May 2022, 4:43 PM
Chris Coder
Chris Coder - avatar
+ 2
31st May 2022, 4:40 PM
Chris Coder
Chris Coder - avatar
+ 2
Ravikumar Gantla That's not hacking... That's normal app behavior when accessing a link. Sololearn isn't a mobile browser, so they have to redirect you to your actual one.
31st May 2022, 4:44 PM
Justice
Justice - avatar
0
These linka are not working.
31st May 2022, 4:41 PM
Ravikumar Gantla
Ravikumar Gantla - avatar
0
Oh..Thanks dude and dudess😂
31st May 2022, 4:45 PM
Ravikumar Gantla
Ravikumar Gantla - avatar
- 3
Are you hacking my phone these links taking me out sololearn
31st May 2022, 4:42 PM
Ravikumar Gantla
Ravikumar Gantla - avatar