'Access-Control-Allow-Origin'
조회 수: 2 (최근 30일)
이전 댓글 표시
About matlab production server config, I am quite sure that I have add --cors-allowed-origins * in the server config file, but the browser still show me: XMLHttpRequest cannot load http://localhost:9910/BondTools/pricecalc. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. Anyone could be helpful? Thanks in advance
댓글 수: 2
ruike
2022년 8월 16일
Hello, where is the --cors-allowed-origins * configured, I can't find the configuration file in my webapp project
답변 (2개)
mohammed
2018년 3월 12일
save the file in html, open the file with Internet exploler. that is how it works for me, modern browser requires a complex security headers.
댓글 수: 0
Neeraj Rajpurohit
2020년 6월 30일
Hi,
In my opinion this is because you are accessing the API from a file. You will need to apply different solutions to different browsers, the below link will help you to get a deep understanding.
Thanks,
Neeraj
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Installation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!