jaxon-php / jaxon-examples

Examples demonstrating the Jaxon library usage https://www.jaxon-php.org.
5 stars 8 forks source link

Issue with strict-origin-when-cross-origin #5

Open amoyaj opened 2 years ago

amoyaj commented 2 years ago

Hi. I'm recently using jaxon instead of the old xajax. Everything is working great, however, I need in a particular script, to send a jaxon call, and depending of the result, I need to refresh the page using javascript, something like:

jaxon->script("location.reload();")

I'm working in a development environment right now. However, the browser inspector shows me an Internal Server Error 500, the details is about CORS: strict-origin-when-cross-origin

I guess this is because of the returning javascript command. Does anyone have experience with this issues? I just need to reload the page.

feuzeu commented 2 years ago

Hi, Never have this issue. However, I prefer using the redirect() method of the Response class, like here.