We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To access public files, I didn't use controller to handle this
It's just direct access to the url path and its working.
but the problem is, when I use ajax to get the files, it's blocked by Cross Origin.
How to solve this?
Btw, I use TotalJS 3. Thank you
The text was updated successfully, but these errors were encountered:
Hi @aalfiann, just add CORS() method to a controller e.g.
CORS()
exports.install = function() { CORS(); // your routes };
Sorry, something went wrong.
I've tried, but still doesn't work..
is it because I've had many controller files?
@aalfiann sorry for the delay. I have prepared a test. You can test the links below:
I have tested them from another domain and everything works correctly.
No branches or pull requests
To access public files, I didn't use controller to handle this
It's just direct access to the url path and its working.
but the problem is, when I use ajax to get the files, it's blocked by Cross Origin.
How to solve this?
Btw, I use TotalJS 3. Thank you
The text was updated successfully, but these errors were encountered: