'Access-Control-Allow-Origin'
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
ruike
el 16 de Ag. de 2022
Hello, where is the --cors-allowed-origins * configured, I can't find the configuration file in my webapp project
Walter Roberson
el 16 de Ag. de 2022
Respuestas (2)
mohammed
el 12 de Mzo. de 2018
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 comentarios
Neeraj Rajpurohit
el 30 de Jun. de 2020
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 comentarios
Ver también
Categorías
Más información sobre Installation en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!