Comments (16)
Can we run npm start & tabeau server on the same port
from extensions-api.
I am running server on localhost://8000 & extension api npm start on localhost://8765.
Here when i tried to change tableau server port to 8765, it doesnt wok as npm is already running in that port.
Now when i publish my workbook, it will have URL starting with localhost://8000, so in extension javascript file , when i want to access window.location.URL it gives me "localhost://8765/....." but i need the published tableau URL.
If i try to access via window.parent.location.href it gives error
from extensions-api.
Uncaught DOMException: Blocked a frame with origin "http://localhost:8765" from accessing a cross-origin frame
from extensions-api.
You can modify the package.json to change what command is run when you type 'npm start'
from extensions-api.
will it avoid cross origin error? but in package.json there is no way to change to the port to 8000
from extensions-api.
i have changed the 8765 in package.json to 8000
from extensions-api.
Error: listen EADDRINUSE 0.0.0.0:8000
getting this error as tableau server running on this
from extensions-api.
That means you have another application running on that port. It seems like you already have Server running on 8000, so you won't be able to run the web app on port 8000 too.
from extensions-api.
If you're just trying to have them on the same port to avoid that cross-origin error, then that won't work. You can't get the url of the parent url . That would have to be something we add to the API. Can you explain why you need the url of the dashboard?
from extensions-api.
if the ports are different, then when i access parent.location.href in webapp, then it gives error saying that its an cross origin requests
from extensions-api.
- Tableau server running on localhost://8000
- Extension API running on localhost://8765
Now in the default "filtering.js" file we are capturing & displaying all filtered results.
This filtered results along with the pubslished dashboard URL, we have pass to some ajax request.
but , tableau dashboard URL is created with "localhost://8000". Now in filtering.js, when i try to fetch window.location.href it gives me URL of "filtering.html" loaded in iframe but i want parent location. When i write console.log(parent.location.href) it gives me cross origin error.
from extensions-api.
or is there any option to enable cors in the node modules?
from extensions-api.
Sorry, what I'm hearing is that you want the dashboard URL. But why does your Extension need that? What will it do with it?
from extensions-api.
yes exactly, you got me right.
I need that URL because we create an simple "export" button in the extension object. On clicking that button , i need to capture the dashboard URL & make an ajax call to our another web server. In that web server, we have already have stored this dashboard URL in the DB. So ajax request sent by us from extension object, need to include dashboard URL for our web server to do some process.
from extensions-api.
so thinking can we enable cors in the node modules of extension object. If yes, then please tell me how can we achieve it?
from extensions-api.
Hi pallaviMN,
You can use document.referrer
to get the URL of a published workbook. This will avoid the CORS issue. More info in this post.
from extensions-api.
Related Issues (20)
- Embedded extensions not respecting the "Hide" login prompt setting HOT 2
- Consider removing Community Portal from docs HOT 3
- Future documentation improvements
- Permission mismatch on Tableau Server/Online HOT 2
- Transparency for non sandboxed extensions HOT 4
- Tooltips do not display on dashboards with an extension - 2021.4 HOT 1
- Kepler.gl Extension breaks in 2021.1+ versions of Tableau Desktop HOT 3
- No way to apply parameters to data retrieved HOT 3
- Can't start extension after adding a table HOT 3
- Using Sets on filter causes getMarksAsync error HOT 4
- Artifactory links need to be replaced in Tutorial\ReactVersion\yarn.lock HOT 2
- MarksInfo undefined using getSummaryDataAsync HOT 1
- npm tableau/tabextsandbox has vulnerabilities HOT 2
- The extension javascript files contain sourceMappingURL, but not the actual map files. HOT 6
- Finding the padding on a dashboard object HOT 1
- Extensions API crashes when dashboard contains worksheet with lots of data. HOT 8
- Question / Possible Issue: Working with Azure App Service deployment is non-responsive HOT 2
- Extension API crashes while extracting worksheet data HOT 1
- Extension api breaks when there is no data in sheet, Issue related to DataTableReader HOT 9
- Command "." not found when running "npm run tslint"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from extensions-api.