![]() 757 8 8 silver badges 11 11 bronze badges. ![]() Ashadi Sedana Pratama Ashadi Sedana Pratama. In practice, though, this is unlikely to be interpreted correctly by current implementations in browsers (eg fails for Firefox 45 at time of writing) summed up by this comment. It seems you need to work around this by setting the Access-Control-Allow-Origin value in a different part of your server-side code. Hey guys, I implemented something like that and it served me correctly. Header set Access-Control-Allow-Origin Cheers, Share. The W3 spec on Access-Control-Allow-Origin explains that multiple origins can be specified by a space-separated list. This is not a limitation of Aws API Gateway, this is just standard that Browser understands irrespective of which server/gateway. How to use a CORS proxy to avoid No Access-Control-Allow-Origin header problems. Īccess-Control-Allow-Headers: origin, x-requested-with, acceptĪccess-Control-Allow-Methods: GET, PUT, POST, DELETEĪccess-Control-Expose-Headers: X-Mashery-Error-Code, X-Mashery-Responder I believe we can only set one origin (or the wildcard) in Access-Control-Allow-Origin header. A response that tells the browser to allow requesting code from the origin to access a resource will include the following: http. ![]() ![]() I'm experiencing the same issue where I get "*, *" in the CORS headers, like below. The value of Access-Control-Allow-Origin response header is set to regardless of the value of the origin request header sent by the client-side CORS component. If youre using a Global CORS with Springboot and want to add multiple domains, this is how Ive done it: In your property file, you can add your property and domains as below:. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |