You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My client is an angular implementation deployed on Nginx in domainA. My ballerina services run in domainB. In fact,
the nginx server is deployed on an IP address in domainB and the DNS from domainA has a record
pointing to that IP address. To fix the CORS issues I used to following configuration for my service:
@http: ServiceConfig{ basePath: "...", cors: {allowOrigins: [""], allowCredentials: false, allowHeaders:
["*"], maxAge: 84900}}While the wildcard option seems to be working when I check the site from
domainA my services are throwing a CORS error Cross-origin request blocked. When I try to set an
exact match for the origins (e.g., https://domainA) I get an error everywhere. Any idea how I can fix it?
Cross-origin request blocked is the error I get in the domain or when I try the exact match with the
URL
like I said earlier using allowOrigins: ["*"] only works outside domainA. Inside domainA I don't get the
http response to my services
that's the one I get while checking from domainA
The text was updated successfully, but these errors were encountered:
chamil321
transferred this issue from ballerina-platform/ballerina-lang
Oct 29, 2020
Description:
Test the following issue from slack:
that's the one I get while checking from domainA
The text was updated successfully, but these errors were encountered: