Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems navigating property index on the file system (PJAX problem?) #442

Open
timo-lindemann-victors opened this issue Jun 14, 2018 · 1 comment

Comments

@timo-lindemann-victors
Copy link

I moved this from #89 for visibility, as that issue is closed.

We use yuidoc (in fact have for years) and the problem in #89 started to once again become apparent a few days ago. I can distinctly remember being able to use yuidoc from the file system without problems, but now I got this pjax error:

Uncaught TypeError: Cannot read property 'getById' of null
    at n.pjax.updateTabState (apidocs.js:234)

This happens in response to cross-origin requests which are not supported for protocol schemes http, data, chrome, chrome-extension, https.

So, it actually seems to be the Same Origin Policy preventing ajax/pjax requests to the file system.

Is it possible to disable pjax completely when dealing with file:// urls?

  • Versions: Node.js version: v6.10.3
  • YUI version: 3.18.1
  • YUIDoc version: 0.10.2
  • This is part of ember-cli-yuidoc, which in turn is part of our application.
@timo-lindemann-victors
Copy link
Author

(Also moved over from #89.)

Upon further investigation: there is code to disable pjax for file system accesses here; the commit is already quite old.

I also tried with master this morning, as 0.10.3 seems to have not been released yet; same problems.

I have not yet discovered why it doesn't work (anymore?). I am quite sure it did work until recently.

@timo-lindemann-victors timo-lindemann-victors changed the title Old issue resurfaced Problems navigating property index on the file system (PJAX problem?) Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant