HOTSPOT -
You need to resolve the Shipping web site error.
How should you configre the Azure Table Storage service? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

HOTSPOT -
You need to resolve the Shipping web site error.
How should you configre the Azure Table Storage service? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Box 1: AllowedOrigins -
A CORS request will fail if Access-Control-Allow-Origin is missing.
Scenario:
The following error message displays while you are testing the website:
Box 2: http://test-shippingapi.wideworldimporters.com
Syntax: Access-Control-Allow-Origin: *
Access-Control-Allow-Origin:
Access-Control-Allow-Origin: null
Box 3: AllowedOrigins -
Box 4: POST -
The only allowed methods are GET, HEAD, and POST. In this case POST is used.
"
References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
Second box should be http://test.wideworldimporters.com, as that is the origin from the error message.
Yes, agreed, second box should be http://test.wideworldimporters.com. the last box either POST or GET. GET is also acceptable.
I disagree, the error is happening in the API calling the function app.
go study well and come back, don't make confusion over here. The answer is indeed 2nd Box
Even if you are right, you could add the prove ;)
second box is the correct answer
Even if you are right, you could add the prove ;)
go study well and come back, don't make confusion over here. The answer is indeed 2nd Box
Even if you are right, you could add the prove ;)
second box is the correct answer
Even if you are right, you could add the prove ;)
I disagree, the error is happening in the API calling the function app.
go study well and come back, don't make confusion over here. The answer is indeed 2nd Box
Even if you are right, you could add the prove ;)
second box is the correct answer
Even if you are right, you could add the prove ;)
origin from the error message is without dot. it is "http://testwideworldimporters.com" where as in option it is http://test(dot)wideworldimporters.com.
In this case i think it is a typo error. The origin is http://testwideworldimporters.com, none of the choices matches this origin but if we assume the typo error, then http://test.wideworldimporters.com should be the answer
In this case i think it is a typo error. The origin is http://testwideworldimporters.com, none of the choices matches this origin but if we assume the typo error, then http://test.wideworldimporters.com should be the answer
go study well and come back, don't make confusion over here. The answer is indeed 2nd Box
Even if you are right, you could add the prove ;)
second box is the correct answer
Agree, this problem comes when the origins test.wideworldimporters.com is not allowed for accessing container API. The XML configuration here is for the API, so we have to accept the origin comes from test.wideworldimporters.com
Agree. BOX 1 & BOX3 for "Allowed Origin" value. Agree. BOX 2 should be this url (http://test.wideworldimporters.com) , assuming typo error exists in "dot"(...test(dot)wide...) as @oxaytol said. Agree also por BOX 4. GET and POST, are correct, so this is a correct answer.
Even if you are right, you could add the prove ;)
Agree. For the last one, I think it should not include POST/PUT, because website only displays data. So, last one is either GET or GET, HEAD. I'd go with GET, HEAD.
according to the Whizlabs you are right
2nd Box answer is correct as the request is generating from the website Url as given in the usecase. Although 4th box should be GET as the app is meant to display data as per the usecase
why AllowedMethod is Post it can also be Get. No where mentioned its using Post method
I would say it's POST as CosmosDB search query will be nested within BODY https://docs.microsoft.com/en-us/rest/api/cosmos-db/querying-cosmosdb-resources-using-the-rest-api
But here MongoDb is used, not Cosmos DB.
But here MongoDb is used, not Cosmos DB.
Website http://testwideworldimporters.com is calling the API. Web browser blocs the call, because this API is in a different domain. This API must me configured to accept calls from the source http://testwideworldimporters.com. https://docs.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services
Box1 & Box3: AllowedOrigins Box2: http://*.wideworldiporters.com The question asks to resolve the Shipping web site error, not the testing. Use wildcard instead. https://docs.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services Box4: GET, PUT
https://docs.microsoft.com/en-us/rest/api/storageservices/set-table-service-properties AllowedMethods Required if CorsRule element exists. A comma-separated list of HTTP methods that are allowed to be executed by the origin. For Azure Storage, permitted methods are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
For me that is not correct. I think only regex works or <AllowedOrigins> * <AllowedOrigins>
I think the Bos 4 is: Get, Head, As it hasn't mentioned which CDN it uses, GET, HEAD is the best answer for Azure CDN from Microsoft. https://docs.microsoft.com/en-us/azure/cdn/cdn-how-caching-works
It should be Get, as it's dynamic content so it will use Azure CDN from Akamai
both Get and Post are accepted https://docs.microsoft.com/en-us/azure/api-management/api-management-cross-domain-policies
The link you pasted also mentions two origins: localhost and example.com. Does this mean 3rd option in Box2 could be right? Since the 2nd option has a typo. Maybe it's not a typo but simply a wrong answer?
The answer provided is correct. Allowed Origin API Allowed Origin POST, GET If you have any doubt. The question is from Azure Storage Service perspective which is consumed by API. Please read the below https://docs.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services
POST, GET is not an option