Replies: 3 comments
|
I have tested it, and it works correctly. Please try to create two examples:
|
0 replies
|
Currently the API uses the URL: On the frontend the API cannot be pulled to the Frontend and the error message in the console on attachment |
0 replies
|
Hmm, it's interesting. Do you use a reverse proxy? Because I have looked at the source-code and Total.js framework answers only with a received origin: https://github.com/totaljs/framework4/blob/master/index.js#L9697. I think that some middleware affects headers between Total.js and the client. Can you check it? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I installed an application that uses API and Front End.
in API, the Controller folder has been added
exports.install = function() {
CORS('/web_api/*', ['get', 'post', 'put', 'delete'], true);
but once installed on Ubuntu Server, Message in console:
Access to XMLHttpRequest at 'https://bak-api.sail-it.id/web_api/opensummary' from origin 'https://bak.sail-it.id' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://bak.sail-it.id, *', but only one is allowed.
is there a wrong setting?
All reactions