Skip to content

Js Webapps, cppagent and CORS #337

Closed Answered by robot-ranger
robot-ranger asked this question in Q&A
Discussion options

You must be logged in to vote

yea, my developer figured out the Http headers by reverse engineering the parsing code. we couldnt find it documented anywhere.

if anyone else stumbles on this in the future, we added the following to agent.cfg to allow all cross-origin:

HttpHeaders {
    Access-Control-Allow-Origin = *
    Access-Control-Allow-Methods = GET
    Access-Control-Allow-Headers = Content-Type
}

I believe you could replace the * with a list of origins to specify whitelisted cross-origins

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@robot-ranger
Comment options

Answer selected by robot-ranger
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants