现在位置:
首页 > Salesforce > 正文
lightning app:
要求:Share Lightning Out Apps with Non-Authenticated Users
lightning app:报错
XMLHttpRequest cannot load https://XXXXX.lightning.force.com/c/XXXXXXXX.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT. Redirect from 'https://XXXXX.lightning.force.com/c/XXXXXX.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT' to 'https://XXXXXX.my.salesforce.com/visualforce/session?url=https%3A%2F%2FXXXXX.lightning.force.com%2Fc%2FXXXXXXXX.app%3Faura.format%3DJSON%26aura.formatAdapter%3DLIGHTNING_OUT' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://XXXXXXX.secure.force.com' is therefore not allowed access.
解决办法:
修改代码:
- <aura:application access="GLOBAL" extends="ltng:outApp"
- implements="ltng:allowGuestAccess">
- </aura:application>
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · Salesforce VisualForce 使用apex:actionFunction调用后台方法
- · Filter Picklist Values Based on Record Type in Lightning
- · How to Call Salesforce API from Lightning Component
- · salesforce lightning icon
- · apex highlight userDefineLang for notepad++
- · 详解 Salesforce 15 和 18 位的ID
- · Salesforce Test class注意事项
- · salesforce Milestone clock is not running
- · salesforce apex traced the number of query
- · salesforce执行apex job的两种方法
- · salesforce antscript无法拉取完整的profile
- · salesforce lightning report取URL参数