OVP cards can't load data in Fiori site - sapui5

I created OVP application to display different cards. This application works well when I deploy it to my Fiori Launchpad page.
OVP cards work well in Fiori launchpad
But the content of OVP application cannot be loaded when I add it to my Site
same OVP cards cannot be loaded in Portal site
It is so weird that OVP application works differently by deploying them to Fiori launchpad and Portal site. Can anyone help me out of this issue? Thanks a lot!

There is any error in the console? Something like "Access-Control-Allow-Origin"?
If your Portal has a different domain that your OData service you will get a CORS issue.
The typical scenario is:
1.- Your OData comes from an ABAP system
2.- Your portal is in a JAVA system
One possible solution. Set a WebDispacher in front of them and access the Portal through the WD. The WD will redirect your requests to the corresponsing system, but your browser will receive everything from the WD domain, so no CORS...

This was solved because the OVP cards works in Fiori launchpad ONLY.
https://jam4.sapjam.com/questions/9NKsSwCxyTD91wIX7CIZig

Related

How to create a web component by using Flutter

My team has already created a web page with Flutter/Dart. It works, great! But it is now asked that the web page shall be integrated into a partner web site by means web components. That means we shall build our Flutter project into a web component instead of a web page.
Does anyone have an idea how we can achieve this? Thanks a lot!

Set destination to an existing sapui5 html5 application

I have a html5 application, called Portal that holds a collection of tiles that simply link to other apps when pressed. I created a custom domain for the portal app. So now when I call https://example.org it shows the portal app.
What I want to do is to show other apps by calling https://example.org/{app_name}. For example http://example.org/records should show the records app. I tried to accomplish this using Destinations, but without any luck. Do you have any idea on how to do this?
If you have SAP Cloud Platform Portal or onPrem NW GW Fiori Launchpad you could use app-to-app-navigation with semantic objects:
Cloud: https://help.sap.com/viewer/3ca6847da92847d79b27753d690ac5d5/Cloud/en-US/1a51a606964141579d14079455ac03b8.html
OnPrem: https://blogs.sap.com/2017/06/23/cross-app-navigation-in-sap-fiori-launchpad/
OnPrem with Web IDE: https://blogs.sap.com/2015/02/19/app-to-app-navigation-in-the-web-ide-fiori-launchpad-sandbox/
If you have a custom Portal, it depends where your apps are deployed. You might need a dns entry solving https://example.org/{app_name} to the real url where the app is available.

Can't run simple application hosting on Facebook

I created app in developers.facebook.com . In products I add web hosting. Chosen type of app is Unity (WebGL).
Then I create .7z package build in Unity and upload on developers.facebook.com. I use Facebook platform, WebGL and App Id.
After that I go to Settings -> Basic, click Add Platform -> Facebook Web Games. I turn on Simple Application Hosting and click on 'save changes'.
But nothing saves and Facebook Web Games component was deleted.
After some experiments I see that nothing saves when I try turn on Simple Application Hosting. But if Simple Application Hosting is switched off everything on 'settings' is saved.
Why can't I use web hosting ? Maybe it's connected with current Facebook changes ?
Same issue for me....my game already deployed game is not working because of this issue :(

Problems configuring an application in Facebook (website with Facebook login)

all:
We have a software developer building a web site with Facebook login for our company. They have told us to register a Facebook application.
For the moment, the beta application is hosted in a development environment. I would like to start testing also the Facebook integration. But when I access to the application page in Facebook, I get an error.
I think it might be related to an attribute I find in the first page of the app configuration. The attribute is called "Hosting URL".
The option seems to be linked to some kind of hosting service provided by Heroku. I don't know exactly what is that, but I would say we do not need it. We will use our own hosting server and, what's more, our application is developed in a language different that the one Heroku supports.
Could somebody confirm us which is the problem and, if it is possible, give us a hint to solve it?
Thank a lot in advance,
-The SportPoket team
The "Hosting URL" is meant to be the public web address of your finished production application. During development however, you only need to provide the URL for the app that is accessible from your web browser. If you are running a local web server on port 5000, http://127.0.0.1:5000/ will work.
Heroku is just one of the suggested hosting services for Facebook and you don't have to use it, but the documentation can be helpful. More about setting up a Facebook app dev env can be found here: https://devcenter.heroku.com/articles/facebook#1-creating-a-development-facebook-app

Infinite Reload With Rotating State Param in Facebook Application

Infinite Reload With Rotating State Param in my facebook web app, this problem occur suddenly and suddenly all fb app on my server stop working
Page is refreshing again and again and not able to open ,
script work fine in other serverbut fails to work in this , is there any server config to handle facebook app.
You can chk issue at Link - gomandi.com/visit/
State Token is Refreshing again and again in all website hosted in my server , Looks like some Server confiG. issue is there . Can anyone help me with this.as i am my server support team unable to find this issue why my server fails to connect with fb server or viceversa.
SAME APP WORK IN OTHER SERVER !!
Based upon the comments on the question above, what you need to do is to create a brand new app for the different domain names. So you can have specific URLs for each domain specified in each of the app's app settings. So if there are three domains, then I'd recommend three apps configured correctly to point to each of those three domains.