- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
CORS 表示:
A web application executes a cross-origin HTTP request when it requests a resource that has a different origin (domain, protocol, and port) than its own origin.
话虽如此,看看这个场景。我在 azure 上部署了两个应用程序。
https://myApp.azurewebsites.net
具有 Angular 客户端的 .NET FW 应用。https://myMicroservice.azurewebsites.net
.NET CORE API。由于两个应用程序位于同一站点(来源)azurewebsites
,这是否意味着我不需要配置CORS
?
注意:我已经在 .NET CORE 应用上配置了 CORS,以允许 https://myApp.azurewebsites.net
来源。
最佳答案
这里,同源
意味着xxx.azurewebsites.net
应该是同一个(以及xxx
)。
因此,就您的情况而言,您需要启用CORS
。否则不允许访问。
关于azure - AzureWebSites 上的 CORS(同源?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60605497/
我的 coinbase 支付按钮不会显示。我从 coinbase 收到此错误消息: 拒绝显示' https://coinbase.com/transactions ' 在框架中,因为它将 'X-Fra
我有一个 Web 应用程序,它作为托管在单个父窗口中的多个 iframe 运行(基本上是修改后的 GWT)http://en.wikipedia.org/wiki/Google_Web_Toolkit
CORS 表示: A web application executes a cross-origin HTTP request when it requests a resource that has
假设我有一个 CPU 密集型 iframe。 它与父页面在同一个域中,因此不适用跨域,因此它共享父页面的事件循环。 是否可以为 iframe 提供一个单独的 JS 上下文(包括一个单独的事件循环),这
我是一名优秀的程序员,十分优秀!