CFDIV Cross origin requests are only supported

76 views
Skip to first unread message

Frank Petersen

unread,
Dec 16, 2015, 11:33:18 AM12/16/15
to Lucee
These use to work in CF8, and I was hoping it still would, but it is throwing the following error.

Here is the tag:

<cfdiv id="incidentDiv" bind="URL:imports/incident.cfm" />

Here is the error in Lucee:

XMLHttpRequest cannot load url:imports/incident.cfm?&_229749725. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

I tried to find something in the docs to suggest this did not work the same as CF, but found nothing.

I went through a series of variations on the URL: (link) but nothing worked.

Suggestions?  

Nando Breiter

unread,
Dec 16, 2015, 3:14:11 PM12/16/15
to lu...@googlegroups.com
I'd suggest using a Javascript library like jQuery for this, which will be much better supported than front-end tags like cfdiv. 

That said, you might also try googling the error message, which would bring you here:


Seems like the problem is exactly what it says in the error message, you have a file system URL in the bind attribute, and Chrome is the software that is preventing the request rather than Lucee as a security measure to close a potential attack surface. See




Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia

--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/6fcedaa2-798d-4470-9125-c32ccd4cf92b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages