Replies: 2 comments 2 replies
-
Hi Paolo,
Have you tried using the defaultResponse
<https://www.mbtest.org/docs/protocols/http> at the imposter level to set
it? As long as it's static and doesn't require dynamic information, I
believe that's the easiest option.
-Brandon
…On Sun, Sep 10, 2023 at 1:08 AM Paolo ***@***.***> wrote:
Hi,
How can we inject the header { "Access-Control-Allow-Origin": "
http://localhost:8000" } programmatically on all stub responses?
Currently, what I'm doing is:
{
// ...
"responses": [
{
"is": {
"headers": {
"Access-Control-Allow-Origin": "http://localhost:8000",
},
},
// ...
},
{
"is": {
"headers": {
"Access-Control-Allow-Origin": "http://localhost:8000",
},
},
// ...
},
]
}
Is it possible that we can have an injection option in *Imposter Creation
parameters* just like with tcp imposter that has endOfRequestResolver
option.
Thanks.
—
Reply to this email directly, view it on GitHub
<#743>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAARFP3PBD6PJVO75AGOIGDXZVKO5ANCNFSM6AAAAAA4R6IFSY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
You bet! I’m actually surprised; I thought it already worked that way.
…On Mon, Sep 11, 2023 at 9:13 PM Paolo ***@***.***> wrote:
I'll try to add these feature if this is okay?
—
Reply to this email directly, view it on GitHub
<#743 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAARFP7NLHBLETJMVTFOGE3XZ7ALRANCNFSM6AAAAAA4R6IFSY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
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.
-
Hi,
How can we inject the header
{ "Access-Control-Allow-Origin": "http://localhost:8000" }
programmatically on all stub responses?Currently, what I'm doing is:
Is it possible that we can have an injection option in Imposter Creation parameters just like with
tcp
imposter that hasendOfRequestResolver
option.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions