AnsweredAssumed Answered

How to handle CORS in LAC

Question asked by irfan.mugale on Oct 21, 2018
Latest reply on Oct 22, 2018 by Seiji_Moriyama

When we request to any function or Resource endpoint we get certain response headers as shown below

I need to change this header.

For Example, my function which is created in LAC only has a GET method than in the response header I should only have GET Method.

Same for Access-Control-Allow-Origin we need to have a specific domain and not the "*".

I have also seen the examples in response events which come with LAC5.0 in which we can customize the CORS, but how we can use them?

 

What is the best practice to handle this?

 

 

Thanks,

Irfan

Outcomes