What is CORS In Spring boot | CORS Policy | CORS Interview Questions and Answer | Code Decode |

preview_player
Показать описание
This video covers CORS policy And how to implement it in the spring Boot application. Why CORS is important And how it works is also explained here.

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

What is CORS
CORS is Cross Origin Resource sharing.

Its a violation of Same origin policy

What is same-origin policy (SOP)

The same-origin policy (SOP) is a web security mechanism built into web browsers that influences how websites can access one another. The concept of same-origin policy was introduced by Netscape Navigator 2.02 in 1995,

Without SOP, a malicious website or web application could access another without restrictions. That would allow attackers to easily steal sensitive information from other websites or even perform actions on other sites without user consent.

SOP does not need to be turned on – it is automatically enabled in every browser that supports it.

The SOP mechanism was designed to protect against attacks such as cross-site request forgery (CSRF), which basically attempt to take advantage of vulnerabilities due to differing origins

What is Origin

Two URLs have the same origin if the protocol, port (if specified), and host are the same for both.

Why we Backend developers need CORS if its implemented at browser level?

Though we are just the backend developers working on backend application but we do have Front end application too .

Now Backend and Front end urls are usually

We can clearly see difference in origin. Hence when ever Front end tries to call ur rest APi, It fails due to SOP policy saying No “Access-Control-Allow-Origin” header is present on requested resource. Origin 4200 is not allowed access.

Solution is CORS.

Hibernate Interview Questions and Answers:

Spring Boot Interview Questions and Answers:

Subscriber and Follow Code Decode

#elasticsearch #interviewquestions #codedecode
Рекомендации по теме
Комментарии
Автор

Seriously i miss that😭 because today my interview, the interviewer ask this one

padmapriya
Автор

Some disturbances occurred in the session but fine, Pls continue the related ones .... Take the applause 👏🏻👏🏻👏🏻

krishnakowshik
Автор

This concept is so much used in our day to day writing of the backend services. Would like to request you if you can give a demo presentation on the same concept. It will help a lot of fresher devs.

AshutoshMohanty
Автор

Thanks for wonderful video. It helps to understand things better.

In future can we make series on graphql, that would be unique and helpful as well. Thanks.

akware
Автор

Hi I am watching all your videos for th last two days. i am loving it. i have a request. can you share the document and code which you have in your github. I think it might me helpful for future references.

mr.incredible
Автор

Thanks for the wonderful explanation.
Can you cover the topic of handling CORS with spring security?

kunjalchauhan
Автор

Mam please make a detail video on how we will apply CORS &policies with spring security.
Thanks in advance😊

RockMB
Автор

One question that was asked was how spring security secures call from one microservice to another? This is where CORS comes into picture or is it a different story entirely? Could you cover this question please?

alokik
Автор

Hi I already subscribed to your channel. please let me know link for full course of spring security, spring boot and other courses.

manjulavanipayyavula
Автор

To check if CORS is supported by the server/origin, browsers send a preflight request in the background.
The preflight request uses the 'OPTIONS' HTTP verb/method to send the request.

pandit-jee-bihar
Автор

Mam please make videos on implementation also and mam for Asynchronous communication also

utkarshshukla
Автор

i make speed 0.75 to catchup ur speed 😛.Anyway very good video..thanks

Kishore_
Автор

could you please make vdo on oauth spring security.

komalpatil
Автор

I am the first one watching this video ☺️

ANILKUMAR-ygmo
Автор

Too fast speed.. not sure why most videos of this channel seems like fast forwarded.
Content is superb but speed needs to be slow

TheSachinpawarcom
Автор

Nice explanation.... could you explain checkmarx concept

moggarajesh
Автор

Mam Please make videos on convox handler and sqs queue implementation in spring Boot

kiranmallikarjun
Автор

Hi mam could you please create video for implementation part of CORS.

balakrushnabehera
Автор

Yaha 1st 2 nd ka competition chal ra Humko bhi koi rank de do 😛

manishtiwary
Автор

Why audio is too fast at start..speed sounds like 1:25 speed

deepadeshpande